What is the purpose of the PATH environment variable?
Answer : A
Which of the following commands sets the variable USERNAME to the value bob?
Answer : E
FILL BLANK -
What command displays manual pages? (Specify ONLY the command without any path or parameters.)
Answer : man
Which command copies the contents of the directory /etc/, including all sub-directories, to /root/?
Answer : B
Which of the following commands puts the lines of the file data.csv into alphabetical order?
Answer : B
Which of the following examples shows the general structure of a for loop in a shell script?
Answer : C
Which operator in a regular expression matches the preceding character either zero or one time?
Answer : A
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?
Answer : E
What is the return value of a shell script after successful execution?
Answer : B
Which of the following commands creates the ZIP archive poems.zip containing all files in the current directory whose names end in .txt?
Answer : C
Which of the following statements are true regarding a typical shell script? (Choose two.)
Answer : AE
Which of the following commands extracts the contents of the compressed archive file1.tar.gz?
Answer : C
Which of the following commands finds all lines in the file operating-systems.txt which contain the term linux, regardless of the case?
Answer : C
Which one of the following statements concerning Linux passwords is true?
Answer : D