ExamGecko
Home Home / LPI / 101-500

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

Question list
Search
Search

CORRECT TEXT

Which signal is missing from the following command that is commonly used to instruct a daemon to reinitialize itself, including reading configuration files? killall -s _______ daemon

A.
HUP,SIGHUP, 1
A.
HUP,SIGHUP, 1
Answers
Suggested answer: A

What is the maximum niceness value that a regular user can assign to a process with the nice command when executing a new process?

A.
9
A.
9
Answers
B.
19
B.
19
Answers
C.
49
C.
49
Answers
D.
99
D.
99
Answers
Suggested answer: B

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?

A.
i (lowercase)
A.
i (lowercase)
Answers
B.
P (uppercase)
B.
P (uppercase)
Answers
C.
p (lowercase)
C.
p (lowercase)
Answers
D.
U (uppercase)
D.
U (uppercase)
Answers
E.
u (lowercase)
E.
u (lowercase)
Answers
Suggested answer: C

A user accidentally created the subdirectory \dir in his home directory. Which of the following commands will remove that directory?

A.
rmdir '~/\dir'
A.
rmdir '~/\dir'
Answers
B.
rmdir "~/\dir"
B.
rmdir "~/\dir"
Answers
C.
rmdir ~/'dir'
C.
rmdir ~/'dir'
Answers
D.
rmdir ~/\dir
D.
rmdir ~/\dir
Answers
E.
rmdir ~/\\dir
E.
rmdir ~/\\dir
Answers
Suggested answer: E

In compliance with the FHS, in which of the directories are man pages found?

A.
/usr/share/man
A.
/usr/share/man
Answers
B.
/opt/man
B.
/opt/man
Answers
C.
/usr/doc/
C.
/usr/doc/
Answers
D.
/var/pkg/man
D.
/var/pkg/man
Answers
E.
/var/man
E.
/var/man
Answers
Suggested answer: A

Which of the following commands will send output from the program myapp to both standard output

(stdout) and the file file1.log?

A.
cat < myapp | cat > file1.log
A.
cat < myapp | cat > file1.log
Answers
B.
myapp 0>&1 | cat > file1.log
B.
myapp 0>&1 | cat > file1.log
Answers
C.
myapp | cat > file1.log
C.
myapp | cat > file1.log
Answers
D.
myapp | tee file1.log
D.
myapp | tee file1.log
Answers
E.
tee myapp file1.log
E.
tee myapp file1.log
Answers
Suggested answer: D

What is the purpose of the Bash built-in export command?

A.
It allows disks to be mounted remotely.
A.
It allows disks to be mounted remotely.
Answers
B.
It runs a command as a process in a subshell.
B.
It runs a command as a process in a subshell.
Answers
C.
It makes the command history available to subshells.
C.
It makes the command history available to subshells.
Answers
D.
It sets up environment variables for applications.
D.
It sets up environment variables for applications.
Answers
E.
It shares NFS partitions for use by other systems on the network.
E.
It shares NFS partitions for use by other systems on the network.
Answers
Suggested answer: D

What is the output of the following command? echo "Hello World" | tr -d aieou

A.
Hello World
A.
Hello World
Answers
B.
eoo
B.
eoo
Answers
C.
Hll Wrld
C.
Hll Wrld
Answers
D.
eoo Hll Wrld
D.
eoo Hll Wrld
Answers
Suggested answer: C

Which of the following characters can be combined with a separator string in order to read from the current input source until the separator string, which is on a separate line and without any trailing spaces, is reached?

A.
<<
A.
<<
Answers
B.
<|
B.
<|
Answers
C.
!<
C.
!<
Answers
D.
&<
D.
&<
Answers
Suggested answer: A

Which of the following commands will NOT update the modify timestamp on the file

/tmp/myfile.txt?

A.
file /tmp/myfile.txt
A.
file /tmp/myfile.txt
Answers
B.
echo "Hello" >/tmp/myfile.txt
B.
echo "Hello" >/tmp/myfile.txt
Answers
C.
sed -ie "s/1/2/" /tmp/myfile.txt
C.
sed -ie "s/1/2/" /tmp/myfile.txt
Answers
D.
echo -n "Hello" >>/tmp/myfile.txt
D.
echo -n "Hello" >>/tmp/myfile.txt
Answers
E.
touch/tmp/myfile.txt
E.
touch/tmp/myfile.txt
Answers
Suggested answer: A
Total 246 questions
Go to page: of 25