Free 200-901 Exam Braindumps
DevNet Associate (DEVASC) Questions 165–169 (page: 35)

Updated On: 9-Feb-2026

Refer to the exhibit.


What is the action of the Bash script that is shown?

  1. For all directories in the current folder, the script goes into the directory and makes a new directory.
  2. The script waits until input is entered. If the directory exists, the script goes into it until there is no directory with the same name, then it creates a new directory.
  3. The script waits until input is entered, then it goes into the directory entered and creates a new directory with the same name.
  4. The script goes into the directory called “$ndir” and makes a new directory called “$ndir”.

Answer(s): B



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

  1. devnet > output.txt
  2. devnet | output.txt
  3. devnet < output.txt
  4. devnet & output.txt

Answer(s): A


Reference:

https://askubuntu.com/questions/420981/how-do-i-save-terminal-output-to-a-file



DRAG DROP (Drag and Drop is not supported)
Drag and drop the Bash commands from the left onto the related actions on the right.
Select and Place:

  1. See Explanation section for answer.

Answer(s): A

Explanation:



FILL BLANK
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' ''

  1. See Explanation section for answer.

Answer(s): A

Explanation:

TARGET_DIR=/usr/local/certs
for f in '/usr/local/certs'; do
echo $f' openssl sha -sha256 -r < $f | cut -f1 -cl' ''



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

  1. rmdir -p old_project
  2. rm -rf old_project
  3. rm -r old_project
  4. rmdir old_project

Answer(s): B



Viewing page 35 of 106
Viewing questions 171 - 175 out of 524 questions


Post your Comments and Discuss Cisco 200-901 exam prep with other Community members:

AI Tutor AI Tutor 👋 I’m here to help!