Halloween Special Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: xmas50

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

Page: 4 / 9
Total 293 questions

Which of the following shell redirections will write standard output and standard error output to a file named filename?

A.

2>&1 >filename

B.

>filename 2>&1

C.

1>&2>filename

D.

>>filename

E.

1&2>filename

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

A.

kill -PIPE 123

B.

kill -KILL 123

C.

kill -STOP 123

D.

kill -TERM 123

Which shell command is used to continue background execution of a suspended command?

A.

&

B.

bg

C.

cont

D.

exec

E.

:&

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

A.

!

B.

+

C.

&

D.

%

E.

#

Which of the following commands can be used to determine how long the system has been running? (Choose TWO correct answers.)

A.

uptime

B.

up

C.

top

D.

uname -u

E.

time –up

Which command is used in a Linux environment to create a new directory? (Specify ONLY the command without any path or parameters.)

      mkdir

      /usr/bin/mkdir

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

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.

Which variable defines the directories in which a Bash shell searches for executable commands?

A.

BASHEXEC

B.

BASHRC

C.

PATH

D.

EXECPATH

E.

PATHRC

What does the? symbol within regular expressions represent?

A.

Match the preceding qualifier one or more times.

B.

Match the preceding qualifier zero or more times.

C.

Match the preceding qualifier zero or one times.

D.

Match a literal? character.

Which command displays a list of all background tasks running in the current shell? (Specify ONLY the command without any path or parameters.)