LPI certification · Exam 101-500

101-500 Mock Exam Page 3

LPIC-1 Exam 101, Part 1 of 2, version 5.0

Free 101-500 mock exam questions 21–30, each with the answer and an explanation.

20 questions · 33 minutes · free, no sign-up

Free 101-500 questions

21–30 of 69 free
Question 21 Choose 1

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

Show answerHide answer

Correct answer: B

dd

Question 22 Choose 1

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

Show answerHide answer

Correct answer: A

/usr/share/man

Question 23 Choose 1

What is the difference between the i and a commands of the vi editor?

Show answerHide answer

Correct answer: B

i (insert) inserts text before the current cursor position whereas a (append) inserts text
after the cursor.

Question 24 Choose 1

A user accidentally created the subdirectory \dir in his home directory. Which of the following commands will remove that directory?

Show answerHide answer

Correct answer: E

rmdir ~/\\dir

Question 25 Choose 1

What does the + symbol mean in the following grep regular expression:
grep '^d[aei]\+d$' /usr/share/dict/words

Show answerHide answer

Correct answer: A

Match the preceding character set ([aei]) one or more times.

Question 26 Choose 1

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

Show answerHide answer

Correct answer: D

vi starts in command mode and opens a new empty file.

Question 27

Which command displays a list of all background tasks running in the current shell? (Specify ONLY the command without any path or parameters.)

Show answerHide answer

Explanation

Answer: jobs

Question 28 Choose 1

Which of the following files, located in the user home directory, is used to store the Bash
history?

Show answerHide answer

Correct answer: A

bash_history

Explanation

Explanation:
QUESTIONNO: 26
Which Bash environment variable defines in which file the user history is stored when
exiting a Bash process? (Specify ONLY the variable name.)

Question 29 Choose 1

Which of the following commands will print the last 10 lines of a text file to the standard output?

Show answerHide answer

Correct answer: D

tail -n 10 filename

Question 30 Choose 1

Which of the following statements is correct regarding the command foo 1> bar?

Show answerHide answer

Correct answer: B

The stdout from the command foo overwrites the file bar.

Full mock exam

Sit the 101-500 exam before exam day

Full-length mocks with the same number of questions and the same time limit as the real 101-500 exam. Every attempt draws a new set of questions from the full bank, so you can keep going until you pass comfortably.

Get full 101-500 mock exam
  • 65questions per mock
  • 105 mintime limit
  • 242questions in the bank
  • Newmock on every attempt