ExamGecko
Home / LPI / 101-500 / List of questions
Ask Question

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

List of questions

Question 61

Report Export Collapse

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

HUP,SIGHUP, 1
HUP,SIGHUP, 1
Suggested answer: A
asked 18/09/2024
Simone Perego
52 questions

Question 62

Report Export Collapse

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

9
9
19
19
49
49
99
99
Suggested answer: B
asked 18/09/2024
Mogamat Davids
40 questions

Question 63

Report Export Collapse

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?

i (lowercase)
i (lowercase)
P (uppercase)
P (uppercase)
p (lowercase)
p (lowercase)
U (uppercase)
U (uppercase)
u (lowercase)
u (lowercase)
Suggested answer: C
asked 18/09/2024
Simon Merlin AGHOKENG
45 questions

Question 64

Report Export Collapse

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

rmdir '~/\dir'
rmdir '~/\dir'
rmdir "~/\dir"
rmdir "~/\dir"
rmdir ~/'dir'
rmdir ~/'dir'
rmdir ~/\dir
rmdir ~/\dir
rmdir ~/\\dir
rmdir ~/\\dir
Suggested answer: E
asked 18/09/2024
Anthony Agbale
49 questions

Question 65

Report Export Collapse

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

/usr/share/man
/usr/share/man
/opt/man
/opt/man
/usr/doc/
/usr/doc/
/var/pkg/man
/var/pkg/man
/var/man
/var/man
Suggested answer: A
asked 18/09/2024
Veridjan Hoxha
43 questions

Question 66

Report Export Collapse

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

(stdout) and the file file1.log?

cat < myapp | cat > file1.log
cat < myapp | cat > file1.log
myapp 0>&1 | cat > file1.log
myapp 0>&1 | cat > file1.log
myapp | cat > file1.log
myapp | cat > file1.log
myapp | tee file1.log
myapp | tee file1.log
tee myapp file1.log
tee myapp file1.log
Suggested answer: D
asked 18/09/2024
Salvatore Buscio
36 questions

Question 67

Report Export Collapse

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

It allows disks to be mounted remotely.
It allows disks to be mounted remotely.
It runs a command as a process in a subshell.
It runs a command as a process in a subshell.
It makes the command history available to subshells.
It makes the command history available to subshells.
It sets up environment variables for applications.
It sets up environment variables for applications.
It shares NFS partitions for use by other systems on the network.
It shares NFS partitions for use by other systems on the network.
Suggested answer: D
asked 18/09/2024
Shadi Akou
37 questions

Question 68

Report Export Collapse

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

Hello World
Hello World
eoo
eoo
Hll Wrld
Hll Wrld
eoo Hll Wrld
eoo Hll Wrld
Suggested answer: C
asked 18/09/2024
Velli Mutham
35 questions

Question 69

Report Export Collapse

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?

<<
<<
<|
<|
!<
!<
&<
&<
Suggested answer: A
asked 18/09/2024
Zaw Zaw
35 questions

Question 70

Report Export Collapse

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

/tmp/myfile.txt?

file /tmp/myfile.txt
file /tmp/myfile.txt
echo "Hello" >/tmp/myfile.txt
echo "Hello" >/tmp/myfile.txt
sed -ie "s/1/2/" /tmp/myfile.txt
sed -ie "s/1/2/" /tmp/myfile.txt
echo -n "Hello" >>/tmp/myfile.txt
echo -n "Hello" >>/tmp/myfile.txt
touch/tmp/myfile.txt
touch/tmp/myfile.txt
Suggested answer: A
asked 18/09/2024
Loyiso Gawula
41 questions
Total 246 questions
Go to page: of 25