LPI 010-160 Practice Test - Questions Answers, Page 7
List of questions
Question 61

What is the purpose of the PATH environment variable?
Question 62

Which of the following commands sets the variable USERNAME to the value bob?
Question 63

FILL BLANK
What command displays manual pages? (Specify ONLY the command without any path or parameters.)
Question 64

Which command copies the contents of the directory /etc/, including all sub-directories, to /root/?
Question 65

Which of the following commands puts the lines of the file data.csv into alphabetical order?
Question 66

Which of the following examples shows the general structure of a for loop in a shell script?
Question 67

Which operator in a regular expression matches the preceding character either zero or one time?
Question 68

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?
Question 69

What is the return value of a shell script after successful execution?
Question 70

Which of the following commands creates the ZIP archive poems.zip containing all files in the current directory whose names end in .txt?
Question