102-400 practice questions, page 3 of 5, with answer review and explanations.
Question 11
What is the difference between the commands test -e path and test -f path?
They are equivalent options with the same behaviour.
The -f option tests for a regular file. The -e option tests for an empty file.
Both options check the existence of the path. The -f option also confirms that it is a regular file.
The -f option tests for a regular file. The -e option tests for an executable file.
Question 12
How can the existing environment variable FOOBAR be suppressed for the execution of the script./myscript only?
unset -v FOOBAR;./myscript
set -a FOOBAR="";./myscript
env -u FOOBAR./myscript
env -i FOOBAR./myscript
Question 13
When the command echo $ outputs 12942, what is the meaning of 12942?
It is the process ID of the echo command.
It is the process ID of the current shell.
It is the process ID of the last command executed.
It is the process ID of the last command which has been placed in the background.
Question 14
What output will the following command produce? seq 1 5 20
1
1
1
2
5
Question 15
Which of the following words is used to restrict the records that are returned from a SELECT SQL query based on a supplied criteria for the values in the records?