LPI Level 1 Exam 101, Junior Level Linux Certification, Part 1 of 2 v7.0 (101-400)

Page:    1 / 12   
Total 177 questions

When given the following command line.
echo "foo bar" | tee bar | cat
Which of the following output is created?

  • A. cat
  • B. foo bar
  • C. tee bar
  • D. bar
  • E. foo

Answer : B

What is the output of the following command?
echo "Hello World" | tr -d aieou

  • A. Hello World
  • B. eoo
  • C. Hll Wrld
  • D. eoo Hll Wrld

Answer : C

What does the ? symbol within regular expressions represent?

  • A. Match the preceding qualifier one or more times.
  • B. Match the preceding qualifier zero or more times.
  • C. Match the preceding qualifier zero or one times.
  • D. Match a literal ?character.

Answer : C

In compliance with the FHS, in which of the directories are man pages found?

  • A. /usr/share/man
  • B. /opt/man
  • C. /usr/doc/
  • D. /var/pkg/man
  • E. /var/man

Answer : A

What command will generate a list of user names from /etc/passwd along with their login shell?

  • A. column -s : 1,7 /etc/passwd
  • B. chop -c 1,7 /etc/passwd
  • C. colrm 1,7 /etc/passwd
  • D. cut -d: -f1,7 /etc/passwd

Answer : D

Which variable defines the directories in which a Bash shell searches for executable commands?

  • C. PATH

Answer : C

Which of the following commands can be used to create a USB storage media from a disk image?

  • A. gdisk
  • B. dd
  • C. cc
  • D. fdisk
  • E. mount

Answer : B

Which of the following commands will send output from the program myapp to both standard output (stdout) and the file file1.log?

  • A. cat < myapp | cat > file1.log
  • B. myapp 0>&1 | cat > file1.log
  • C. myapp | cat > file1.log
  • D. myapp | tee file1.log
  • E. tee myapp file1.log

Answer : D

Which of the following are valid stream redirection operators within Bash? (Choose THREE correct answers.)

  • A. <
  • B. <<<
  • C. >
  • D. >>>
  • E. %>

Answer : A,B,C

Which of the following commands will reduce all consecutive spaces down to a single space?

  • A. tr '\s' ' ' < a.txt > b.txt
  • B. tr -c ' ' < a.txt > b.txt
  • C. tr -d ' ' < a.txt > b.txt
  • D. tr -r ' ' '\n' < a.txt > b.txt
  • E. tr -s ' ' < a.txt > b.txt

Answer : E

What happens after issuing the command vi without any additional parameters?

  • A. vi starts and loads the last file used andmoves the cursor to the position where vi was when it last exited.
  • B. vi starts and requires the user to explicitly either create a new or load an existing file.
  • C. vi exits with an error message as it cannot be invoked without a file name to operate on.
  • D. vi starts in command mode and opens a new empty file.
  • E. vi starts and opens a new file which is filled with the content of the vi buffer if the buffer contains text.

Answer : D

Which of the following commands prints all files and directories within the /tmp directory or its subdirectories which are also owned by the user root? (Choose TWO correct answers.)

  • A. find /tmp -uid root -print
  • B. find -path /tmp -uid root
  • C. find /tmp -user root -print
  • D. find /tmp -user root
  • E. find -path /tmp -user root –print

Answer : C,D

Which of the following signals is sent to a process when the key combination CTRL+C is pressed on the keyboard?


Answer : B

Which shell command is used to continue background execution of a suspended command?

  • A. &
  • B. bg
  • C. cont
  • D. exec
  • E. :&

Answer : B

In the vi editor, which of the following commands will copy the current line into the vi buffer?

  • A. c
  • B. cc
  • C. 1c
  • D. yy
  • E. 1y

Answer : D

Page:    1 / 12   
Total 177 questions