This quiz is part of the DevOpsTheHardWay course.

Please answer the quiz and click the "Test" button at the bottom right.

Bash - command techniques - multichoice questions

Question 1

After running a command line from an interactive bash prompt, the following messages are displayed:

bash: timelog: Permission denied
timestamp failed

Which of the following command lines could have produced the messages?

Question 2

Which of the following would run the chmod command only if the mkdir command succeeds?

Question 3

Which of the following would run the chmod command only if the mkdir command fails?

Question 4

Which of the following would run the chmod command regardless of the success or failure of the mkdir command?

Question 5

When the user plato runs the following command, what is the name of the file that is written to?

cal > calendar.$(id -un).txt`

Question 6

Which operator tells the shell to run a given command in the background?

license