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

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

Questions 61

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

Options:
A.

The stdout from the command foo is appended to the file bar.

B.

The stdout from the command foo overwrites the file bar.

C.

The command foo receives its stdin from the file bar.

D.

The command foo receives its stdin from the stdout of the command bar.

E.

The stderr from the command foo is saved to the file bar.

LPI 101-500 Premium Access
Questions 62

Which of the following sequences in the vi editor saves the opened document and exits the editor? (Choose TWO correct answers.)

Options:
A.

esc ZZ

B.

ctrl :w!

C.

esc zz

D.

esc :wq!

E.

ctrl XX

Questions 63

What is the effect of the egrep command when the -v option is used?

Options:
A.

It enables color to highlight matching parts.

B.

It only outputs non-matching lines.

C.

It shows the command's version information.

D.

It changes the output order showing the last matching line first.

Questions 64

Which grep command will print only the lines that do not end with a / in the file foo?

Options:
A.

grep'/$' foo

B.

grep '/#' foo

C.

grep -v '/$' foo

D.

grep -v '/#' foo

Questions 65

What does the + symbol mean in the following grep regular expression:

grep '^d[aei]\+d$' /usr/share/dict/words

Options:
A.

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

B.

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

C.

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

D.

Match a literal + symbol.

Questions 66

Which permissions and ownership should the file /etc/passwd have?

Options:
A.

-rw-------1 rootroot531 Jun 5 22:45 /etc/passwd

B.

-rw-r--r--1 rootroot531 Jun 5 22:45 /etc/passwd

C.

-rw-r--r--1 11531 Jun 5 22:45 /etc/passwd

D.

-rw-------1 11531 Jun 5 22:45 /etc/passwd

Questions 67

To what environment variable will you assign or append a value if you need to tell the dynamic linker to look in a build directory for some of a program's shared libraries?

Options:
A.

LD_LOAD_PATH

B.

LD_LIB_PATH

C.

LD_LIBRARY_PATH

D.

LD_SHARE_PATH

E.

LD_RUN_PATH

Questions 68

Which of the following commands updates the linker cache of shared libraries?

Options:
A.

mkcache

B.

soconfig

C.

mkldconfig

D.

lddconfig

E.

ldconfig

Questions 69

An administrator has issued the following command:

grub-install --root-directory=/custom-grub /dev/sda

In which directory will new configuration files be found? (Provide the full directory path only without the filename)

Options:
A.

/custom-grub/boot/grub/

B.

/custom-grub/boot/grub

Questions 70

What is the name of the main configuration file for GNU GRUB? (Specify the file name only without any path.)

    menu.lst

    grub.conf

    grub.cfg

Options:
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