ExamGecko
Home Home / LPI / 101-500

LPI 101-500 Practice Test - Questions Answers, Page 8

Question list
Search
Search

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

A.
-10
A.
-10
Answers
B.
10
B.
10
Answers
C.
20
C.
20
Answers
D.
0
D.
0
Answers
Suggested answer: B

What is the default action of the split command on an input file?

A.
It will break the file into new files of 1,024 byte pieces each.
A.
It will break the file into new files of 1,024 byte pieces each.
Answers
B.
It will break the file into new files of 1,000 line pieces each.
B.
It will break the file into new files of 1,000 line pieces each.
Answers
C.
It will break the file into new files of 1,024 kilobyte pieces each.
C.
It will break the file into new files of 1,024 kilobyte pieces each.
Answers
D.
It will break the file into new files that are no morethan 5% of the size of the original file.
D.
It will break the file into new files that are no morethan 5% of the size of the original file.
Answers
Suggested answer: B

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

A.
i (interactive) requires the user to explicitly switch between vi modes whereas a (automatic) switches modesautomatically.
A.
i (interactive) requires the user to explicitly switch between vi modes whereas a (automatic) switches modesautomatically.
Answers
B.
i (insert) inserts text before the current cursor position whereas a (append) inserts text after the cursor.
B.
i (insert) inserts text before the current cursor position whereas a (append) inserts text after the cursor.
Answers
C.
i (independent rows) starts every new line at the first character whereas a (aligned rows) keeps the indentation of the previous line.
C.
i (independent rows) starts every new line at the first character whereas a (aligned rows) keeps the indentation of the previous line.
Answers
D.
i (interrupt) temporarily suspends editing of a file to the background whereas a (abort) terminates editing.
D.
i (interrupt) temporarily suspends editing of a file to the background whereas a (abort) terminates editing.
Answers
Suggested answer: B

CORRECT TEXT

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

A.
jobs
A.
jobs
Answers
Suggested answer: A

Which of the following commands moves and resumes in the background the last stopped shell job?

A.
run
A.
run
Answers
B.
bg
B.
bg
Answers
C.
fg
C.
fg
Answers
D.
back
D.
back
Answers
Suggested answer: B

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

A.
It enables color to highlight matching parts.
A.
It enables color to highlight matching parts.
Answers
B.
It only outputs non-matching lines.
B.
It only outputs non-matching lines.
Answers
C.
It shows the command's version information.
C.
It shows the command's version information.
Answers
D.
It changes the output order showing the last matching line first.
D.
It changes the output order showing the last matching line first.
Answers
Suggested answer: B

What does the ? symbol within regular expressions represent?

A.
Match the preceding qualifier one or more times.
A.
Match the preceding qualifier one or more times.
Answers
B.
Match the preceding qualifier zero or more times.
B.
Match the preceding qualifier zero or more times.
Answers
C.
Match the preceding qualifier zero or one times.
C.
Match the preceding qualifier zero or one times.
Answers
D.
Match a literal ?character.
D.
Match a literal ?character.
Answers
Suggested answer: C

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?

A.
By using the command :repeat followed by the number and the command.
A.
By using the command :repeat followed by the number and the command.
Answers
B.
By specifying the number right in front of a command such as 4l or 2yj.
B.
By specifying the number right in front of a command such as 4l or 2yj.
Answers
C.
By selecting all affected lines using the shift and cursor keys before applying the command.
C.
By selecting all affected lines using the shift and cursor keys before applying the command.
Answers
D.
By issuing a command such as :set repetition=4 which repeats every subsequentcommand 4 times.
D.
By issuing a command such as :set repetition=4 which repeats every subsequentcommand 4 times.
Answers
Suggested answer: B

Which of the following files, located in the user home directory, is used to store the Bash history?

A.
.bash_history
A.
.bash_history
Answers
B.
.bash_histfile
B.
.bash_histfile
Answers
C.
.history
C.
.history
Answers
D.
.bashrc_history
D.
.bashrc_history
Answers
E.
.history_bash
E.
.history_bash
Answers
Suggested answer: A

CORRECT TEXT

Which Bash environment variable defines in which file the user history is stored when exiting a Bash process? (Specify ONLY the variable name.)

A.
HISTFILE
A.
HISTFILE
Answers
Suggested answer: A
Total 246 questions
Go to page: of 25