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

Free LPI 101-400 Practice Exam with Questions & Answers

Questions 1

What is the purpose of the xargs command?

Options:
A.

It passes arguments to an X server.

B.

It reads standard input (STDIN) and builds up command lines to execute.

C.

It helps shellscripts take variable argument lists.

D.

It asks a question, graphically, and returns the answer to the shell.

E.

It allows users to specify long options for commands that normally only accept short options.

LPI 101-400 Premium Access
Questions 2

Which of the following commands changes all occurrences of the word “bob” in file data to “Bob” and prints the result to standard output?

Options:
A.

sed‘/bob/Bob’ data

B.

sed‘s/bob/Bob/g’ data

C.

sed‘s/bob/Bob/’ data

D.

sed‘/bob/Bob/’ data

E.

sed‘s/bob,Bob/’ data

Questions 3

Which utility would be used to change how often a filesystem check is performed on an ext2 filesystem without losing any data stored on that filesystem?

Options:
A.

mod2fs

B.

fsck

C.

tune2fs

D.

mke2fs

E.

fixe2fs

Questions 4

Which of the following commands will change all CR-LF pairs in an imported text file, userlist.txt, to Linux standard LF characters and store it as newlist.txt?

Options:
A.

tr ‘\r\n’ ‘’ < userlist.txt > newlist.txt

B.

tr –c ‘\n\r’ ‘’ < newlist.txt > userlist.txt

C.

tr –d ‘\r’ < userlist.txt > newlist.txt

D.

tr ‘\r’ ‘\n’ userlist.txt newlist.txt

E.

tr –s ‘^M’ ‘^J’ userlist.txt newlist.txt

Questions 5

How many fields are in a syntactically correct line of /etc/fstab?

Options:
A.

3

B.

4

C.

5

D.

6

E.

7

Questions 6

When piping the output of find to the xargs command, what option to find is useful if the filenames have spaces in them?

Options:
A.

–rep-space

B.

–print0

C.

–nospace

D.

–ignore-space

Questions 7

Creating a hard link to an ordinary file returns an error. What could be the reason for this?

Options:
A.

The source file is hidden.

B.

The source file is read-only.

C.

The source file is a shell script.

D.

The source file is already a hard link.

E.

The source and the target are on different filesystems.

Questions 8

Which of the following commands makes /bin/foo executable by everyone but writable only by its owner?

Options:
A.

chmod u=rwx,go=rx /bin/foo

B.

chmod o+rwx,a+rx /bin/foo

C.

chmod 577 /bin/foo

D.

chmod 775 /bin/foo

Questions 9

Which of the following is true for hard linked files? (Choose three.)

Options:
A.

The output ofstatwill reporthardinstead ofregular file.

B.

The hard linked files have the same permissions and owner.

C.

The hard linked files share the same inode.

D.

The hard linked files are indicated by a -> when listed withls -1.

E.

The hard linked files must be on the same filesystem.

Questions 10

Which signal is sent by the kill command by default?

Options:
A.

SIGHUP(1)

B.

SIGQUIT(3)

C.

SIGKILL(9)

D.

SIGTERM(15)

Exam Code: 101-400
Certification Provider: LPI
Exam Name: LPI Level 1 Exam 101, Junior Level Linux Certification, Part 1 of 2
Last Update: Feb 11, 2025
Questions: 177