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

Page:    1 / 24   
Total 120 questions

What output will the following command produce?
seq 1 5 20

  • A. 1
  • B. 1
  • C. 1
  • D. 2
  • E. 5


Answer : A

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

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

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

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

Page:    1 / 24   
Total 120 questions