LPI certification · Exam 101-500

101-500 Mock Exam Page 2

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

Free 101-500 questions on Topic 3, GNU and Unix Commands, each with the answer and an explanation.

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

Topic 3, GNU and Unix Commands questions

11–16 of 16 free
Question 11 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 12

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 13 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 14 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 15 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.

Question 16 Choose 1

Which of the following commands displays the contents of a gzip compressed tar archive?

Show answerHide answer

Correct answer: B

tar ztf archive.tgz

That's the last free question in Topic 3, GNU and Unix Commands

You've seen the free 30% (16 of 56 questions). Full access unlocks every question and full-length 101-500 mock exams (65 questions, 105 minutes), a different mock on every attempt.

Unlock full mock exam
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