Tag Archives: bash

Fill in the blanks to complete the Bash script in which each file in a directory is renamed to its SHA256 hash?

Fill in the blanks to complete the Bash script in which each file in a directory is renamed to its SHA256 hash? TARGET_DIR=/usr/local/certs – for f in ‘__________ __________’; do __________ $f’ openssl sha -sha256 -r < $f | cut -f1 -cl’ ” A. See explanation below. Answer: Option A. Explanation:  TARGET_DIR=/usr/local/certs – for f in ‘/usr/local/certs’; do… Read More »

After a project is migrated to a new codebase, the “old_project” directory must be deleted. This directory has multiple readonly flies, and it must be deleted recursively without prompting for confirmation. Which Bash command must be used?

A. rmdir -p old_project B. rm -rf old_project C. rm -r old_project D. rmdir old_project Answer: Option B. Explanation:  No answer description available for this question. Show AnswerDiscussion The post After a project is migrated to a new codebase, the “old_project” directory must be deleted. This directory has multiple readonly flies, and it must be deleted recursively without… Read More »

When using the Bash shell, how is the output of the devnet command saved to a file named “output.txt”?

A. devnet > output.txt B. devnet | output.txt C. devnet < output.txt D. devnet & output.txt Answer: Option A. Explanation:  Reference: https://askubuntu.com/questions/420981/how-do-i-save-terminal-output-to-a-file Show AnswerDiscussion The post When using the Bash shell, how is the output of the devnet command saved to a file named “output.txt”? appeared first on Majanto.

An engineer must configure a load balancer server. The engineer prepares a script to automate workflow by using Bash. The script installs the nginx package, moves to the /opt/nginx directory, and reads the sites.txt file for further processing. Based on the script workflow, which process is being automated within the loop by using the information in sites.txt?

Refer to the exhibit. An engineer must configure a load balancer server. The engineer prepares a script to automate workflow by using Bash. The script installs the nginx package, moves to the /opt/nginx directory, and reads the sites.txt file for further processing. Based on the script workflow, which process is being automated within the loop by using the… Read More »

Drag and drop the code from the bottom onto the box where the code is missing in the Bash script to complete the missing assignments.

Drag and drop the code from the bottom onto the box where the code is missing in the Bash script to complete the missing assignments. Select and Place: Answer: Explanation:  No answer description available for this question. Show AnswerDiscussion The post Drag and drop the code from the bottom onto the box where the code is missing in… Read More »

Which line must be included in the Bash script for the Python code to succeed?

Refer to the exhibit. Which line must be included in the Bash script for the Python code to succeed? A. define WEBEX_TEAMS_ACCESS_TOKEN=your_access_token_here B. export WEBEX_TEAMS_ACCESS_TOKEN=your_access_token_here C. set WEBEX_TEAMS_ACCESS_TOKEN=your_access_token_here D. WEBEX_TEAMS_ACCESS_TOKEN=your_access_token_here Answer: Option B. Explanation:  No answer description available for this question. Show AnswerDiscussion The post Which line must be included in the Bash script for the Python code… Read More »

A network engineer works on a Cisco DevNet application that is available for download on the Cisco DevNet website. The engineer prepares a bash script to automate operations that relate to the application. Which workflow is being automated in the bash script?

Refer to the exhibit. A network engineer works on a Cisco DevNet application that is available for download on the Cisco DevNet website. The engineer prepares a bash script to automate operations that relate to the application. Which workflow is being automated in the bash script? A. compilation and configuration of the Cisco DevNet application so that it… Read More »