LPI 010-160 Practice Test - Questions Answers, Page 7
List of questions
Related questions
What is the purpose of the PATH environment variable?
Which of the following commands sets the variable USERNAME to the value bob?
FILL BLANK
What command displays manual pages? (Specify ONLY the command without any path or parameters.)
Which command copies the contents of the directory /etc/, including all sub-directories, to /root/?
Which of the following commands puts the lines of the file data.csv into alphabetical order?
Which of the following examples shows the general structure of a for loop in a shell script?
Which operator in a regular expression matches the preceding character either zero or one time?
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?
What is the return value of a shell script after successful execution?
Which of the following commands creates the ZIP archive poems.zip containing all files in the current directory whose names end in .txt?
Question