Summer Special 60% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: bestdeal

Free LPI 101-500 Practice Exam with Questions & Answers | Set: 6

Questions 51

Which command displays the contents of the Kernel Ring Buffer on the command line? (Provide only the command name without any options or path information)

Options:
LPI 101-500 Premium Access
Questions 52

You are trying to make a hard link to an ordinary file but ln returns an error. Which of the following could cause this?

Options:
A.

The source file is hidden.

B.

The source file is read-only.

C.

The source file is a shell script.

D.

You do not own the source file.

E.

The source and the target are on different filesystems.

Questions 53

In the vi editor, how can commands such as moving the cursor or copying lines into the buffer be issued multiple times or applied to multiple rows?

Options:
A.

By using the command: repeat followed by the number and the command.

B.

By specifying the number right in front of a command such as 4l or 2yj.

C.

By selecting all affected lines using the shift and cursor keys before applying the command.

D.

By issuing a command such as: set repetition=4 which repeats every subsequent command 4 times.

Questions 54

Which of the following commands kills the process with the PID 123 but allows the process to "clean up" before exiting?

Options:
A.

kill -PIPE 123

B.

kill -KILL 123

C.

kill -STOP 123

D.

kill -TERM 123

Questions 55

Which of the following commands replaces each occurrence of 'bob' in the file letter with 'Bob' and writes the result to the file newletter?

Options:
A.

sed '/bob/Bob' letter > newletter

B.

sed s/bob/Bob/ letter < newletter

C.

sed's/bob/Bob' letter > newletter

D.

sed 's/bob/Bob/g' letter > newletter

E.

sed 's/bob, Bob/' letter > newletter

Questions 56

Which character, added to the end of a command, runs that command in the background as a child process of the current shell?

Options:
A.

!

B.

+

C.

&

D.

%

E.

#

Questions 57

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

Options:
A.

i (interactive) requires the user to explicitly switch between vi modes whereas a (automatic) switches modes automatically.

B.

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

C.

i (independent rows) starts every new line at the first character whereas a (aligned rows) keeps the indentation of the previous line.

D.

i (interrupt) temporarily suspends editing of a file to the background whereas a (abort) terminates editing.

Questions 58

In a nested directory structure, which find command line option would be used to restrict the command to searching down a particular number of subdirectories?

Options:
A.

-dirmax

B.

-maxdepth

C.

-maxlevels

D.

-n

E.

-s

Questions 59

What is the output of the following command?

echo "Hello World" | tr -d aieou

Options:
A.

Hello World

B.

eoo

C.

Hll Wrld

D.

eoo Hll Wrld

Questions 60

Which of the following commands prints a list of usernames (first column) and their primary group (fourth column) from the /etc/passwd file?

Options:
A.

fmt -f 1,4 /etc/passwd

B.

split -c 1,4 /etc/passwd

C.

cut -d : -f 1,4 /etc/passwd

D.

paste -f 1,4 /etc/passwd

Exam Code: 101-500
Certification Provider: LPI
Exam Name: LPIC-1 Exam 101, Part 1 of 2, version 5.0
Last Update: Oct 15, 2025
Questions: 293