Which of the following commands puts the output of the command date into the shell variable mydate?
B. mydate="exec date"
By default, the contents of which directory will be copied to a new user's home directory when the account is created by passing the -m option to the useradd command? (Specify the full path to the dir...
What output will the command seq 10 produce?
A. A continuous stream of numbers increasing in increments of 10 until stopped.
B. The numbers 1 through 10 with one number per line.
C. The numbers 0 thr...
When the command echo $? outputs 1, which of the following statements is true?
A. It is the process ID of the echo command.
B. It is the process ID of the current shell.
C. It is the exit value of th...
What output will the following command sequence produce?
echo '1 2 3 4 5 6' | while read a b c; do
echo result: $c $b $a;
A. result: 3 4 5 6 2 1
B. result: 1 2 3 4 5 6
C. result: 6 5 4