LPI 102-400 - LPI Level 1 Exam 102, Junior Level Linux Certification, Part 2 of 2 Exam

Question #1 (Topic: Topic 1)
What output will the following command produce?
seq 1 5 20
A. 1 B. 1 C. 1 D. 2 E. 5
Answer: A
Question #2 (Topic: Topic 1)
When the command echo $$ outputs 12942, what is the meaning of 12942?
A. It is the process ID of the echo command. B. It is the process ID of the current shell. C. It is the process ID of the last command executed. D. It is the process ID of the last command which has been placed in the background.
Answer: B
Question #3 (Topic: Topic 1)
Which of the following are requirements in order to run a shell script like a regular
command from anywhere in the filesystem? (Choose THREE correct answers.)
A. The user issuing the command must be in the group script. B. The script file must be found in the $PATH. C. The script file must have the executable permission bit set. D. The script must begin with a shebang-line (#!) that points to the correct interpreter. E. The file system on which the script resides must be mounted with the option scripts.
Answer: B,C,D
Question #4 (Topic: Topic 1)
By default, the contents of which directory will be copied to a new user's home directory
when the account is created by passing the -m option to the useradd command? (Specify
the full path to the directory.)
Answer: /etc/skel
Question #5 (Topic: Topic 1)
What output will the command seq 10 produce?
A. A continuous stream of numbers increasing in increments of 10 until stopped. B. The numbers 1 through 10 with one number per line. C. The numbers 0 through 9 with one number per line. D. The number 10 to standard output.
Answer: B
Download Exam
Page: 1 / 24
Total 120 questions