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

Top Tips for Passing the LPI 101-500 Exam on Your First Try

Questions 51

While editing a file in vi, the file changes due to another process. Without exiting vi, how can the file be reopened for editing with the new content?

Options:

A.

:r

B.

:n

C.

:w

D.

:e

Buy Now
Questions 52

What is the default nice level when a process is started using the nice command?

Options:

A.

-10

B.

10

C.

20

D.

0

Buy Now
Questions 53

From a Bash shell, which of the following commands directly executes the instruction from the file /usr/local/bin/runme.sh without starting a subshell? (Please select TWO answers.)

Options:

A.

source /usr/local/bin/runme.sh

B.

. /usr/local/bin/runme.sh

C.

/bin/bash /usr/local/bin/runme.sh

D.

/usr/local/bin/runme.sh

E.

run /usr/local/bin/runme.sh

Buy Now
Questions 54

Which of the following commands will send output from the program myapp to both standard output (stdout) and the file file1.log?

Options:

A.

cat < myapp | cat > file1.log

B.

myapp 0>&1 | cat > file1.log

C.

myapp | cat > file1.log

D.

myapp | tee file1.log

E.

tee myapp file1.log

Buy Now
Questions 55

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.

Buy Now
Questions 56

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

Options:

A.

gzip archive.tgz | tar xvf -

B.

tar ztf archive.tgz

C.

gzip -d archive.tgz | tar tvf -

D.

tar cf archive.tgz

Buy Now
Questions 57

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.

Buy Now
Questions 58

In Bash, inserting 1>&2 after a command redirects

Options:

A.

standard error to standard input.

B.

standard input to standard error.

C.

standard output to standard error.

D.

standard error to standard output.

E.

standard output to standard input.

Buy Now
Questions 59

Which of the following signals is sent to a process when the key combination CTRL+C is pressed on the keyboard?

Options:

A.

SIGTERM

B.

SIGINT

C.

SIGSTOP

D.

SIGKILL

Buy Now
Questions 60

Immediately after deleting 3 lines of text in vi and moving the cursor to a different line, which single character command will insert the deleted content below the current line?

Options:

A.

i (lowercase)

B.

P (uppercase)

C.

p (lowercase)

D.

U (uppercase)

E.

u (lowercase)

Buy Now
Exam Code: 101-500
Exam Name: LPIC-1 Exam 101, Part 1 of 2, version 5.0
Last Update: Dec 4, 2024
Questions: 243

PDF + Testing Engine

$164.99
$66

Testing Engine

$124.99
$50

PDF (Q&A)

$104.99
$42