Which of the following commands creates the ZIP archive poems.zip containing all files in the current
directory whose names end in .txt?
C
What is the return value of a shell script after successful execution?
B
The file script.sh in the current directory contains the following content:
#!/bin/bash echo $MYVAR
The following commands are used to execute this script:
MYVAR=value
./script.sh
The result is an empty line instead of the content of the variable MYVAR. How should MYVAR be set
in order to make script.sh display the content of MYVAR?
E
Which operator in a regular expression matches the preceding character either zero or one time?
A
Which of the following examples shows the general structure of a for loop in a shell script?
C
Which of the following commands puts the lines of the file data.csv into alphabetical order?
B
Which command copies the contents of the directory /etc/, including all sub-directories, to /root/?
B
FILL IN THE BLANK
What command displays manual pages? (Specify ONLY the command without any path or
parameters.)
man
Which of the following commands sets the variable USERNAME to the value bob?
E
What is the purpose of the PATH environment variable?
A
Which command displays file names only and no additional information?
A
Which of the following commands output the content of the file Texts 2.txt? (Choose two.)
AB
Which of the following commands shows the absolute path to the current working directory?
C
Most commands on Linux can display information on their usage. How can this information typically
be displayed?
E
FILL IN THE BLANK
What parameter of ls prints a recursive listing of a directory's content? (Specify ONLY the option
name without any values or parameters.)
ls -R