ExamGecko
Home Home / LPI / 101-500

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

Question list
Search
Search

Question 51

Report
Export
Collapse

Which of the following apt-get commands will install the newest versions of all currently installed packages without removing any packages or installing new packages that are not already installed?

A.
auto-update
A.
auto-update
Answers
B.
upgrade
B.
upgrade
Answers
C.
dist-upgrade
C.
dist-upgrade
Answers
D.
install
D.
install
Answers
E.
update
E.
update
Answers
Suggested answer: B
asked 18/09/2024
Stephen DeWhite
37 questions

Question 52

Report
Export
Collapse

What is the difference between the --remove and the --purge action with the dpkg command?

A.
--remove removes the program, --purge also removes the config files
A.
--remove removes the program, --purge also removes the config files
Answers
B.
--remove only removes the program, --purge only removes the config files
B.
--remove only removes the program, --purge only removes the config files
Answers
C.
--remove removes a package, --purge also removes all packages dependent on it
C.
--remove removes a package, --purge also removes all packages dependent on it
Answers
D.
--remove removes only the package file itself, --purge removes all files related to the package
D.
--remove removes only the package file itself, --purge removes all files related to the package
Answers
Suggested answer: A
asked 18/09/2024
Srikar Gude
31 questions

Question 53

Report
Export
Collapse

You want to preview where the package file, apache-xml.i386.rpm, will install its files before installing it. What command do you issue?

A.
rpm -qp apache-xml.i386.rpm
A.
rpm -qp apache-xml.i386.rpm
Answers
B.
rpm -qv apache-xml.i386.rpm
B.
rpm -qv apache-xml.i386.rpm
Answers
C.
rpm -ql apache-xml.i386.rpm
C.
rpm -ql apache-xml.i386.rpm
Answers
D.
rpm -qpl apache-xml.i386.rpm
D.
rpm -qpl apache-xml.i386.rpm
Answers
Suggested answer: D
asked 18/09/2024
Emily Mangrum
34 questions

Question 54

Report
Export
Collapse

CORRECT TEXT

Typically, which top level system directory is used for files and data that change regularly while the system is running and are to be kept between reboots? (Specify only the top level directory)

A.
/var, /var/, var, var/
A.
/var, /var/, var, var/
Answers
Suggested answer: A
asked 18/09/2024
vceplus plus
46 questions

Question 55

Report
Export
Collapse

Which of the following commands can be used to create a USB storage media from a disk image?

A.
gdisk
A.
gdisk
Answers
B.
dd
B.
dd
Answers
C.
cc
C.
cc
Answers
D.
fdisk
D.
fdisk
Answers
E.
mount
E.
mount
Answers
Suggested answer: B
asked 18/09/2024
Christina Lanaski
38 questions

Question 56

Report
Export
Collapse

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

A.
standard error to standard input.
A.
standard error to standard input.
Answers
B.
standard input to standard error.
B.
standard input to standard error.
Answers
C.
standard output to standard error.
C.
standard output to standard error.
Answers
D.
standard error to standard output.
D.
standard error to standard output.
Answers
E.
standard output to standard input.
E.
standard output to standard input.
Answers
Suggested answer: C
asked 18/09/2024
Jose Gonzalez
40 questions

Question 57

Report
Export
Collapse

What command will generate a list of user names from /etc/passwd along with their login shell?

A.
column -s : 1,7 /etc/passwd
A.
column -s : 1,7 /etc/passwd
Answers
B.
chop -c 1,7 /etc/passwd
B.
chop -c 1,7 /etc/passwd
Answers
C.
colrm 1,7 /etc/passwd
C.
colrm 1,7 /etc/passwd
Answers
D.
cut -d: -f1,7 /etc/passwd
D.
cut -d: -f1,7 /etc/passwd
Answers
Suggested answer: D
asked 18/09/2024
sidra gray
34 questions

Question 58

Report
Export
Collapse

In a nested directory structure, which find command line option would be used to restrict the command to searching down a particular number of subdirectories?

A.
-dirmax
A.
-dirmax
Answers
B.
-maxdepth
B.
-maxdepth
Answers
C.
-maxlevels
C.
-maxlevels
Answers
D.
-n
D.
-n
Answers
E.
-s
E.
-s
Answers
Suggested answer: B
asked 18/09/2024
Richard Drayer Camacho
37 questions

Question 59

Report
Export
Collapse

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.
A.
The stdout from the command foo is appended to the file bar.
Answers
B.
The stdout from the command foo overwrites the file bar.
B.
The stdout from the command foo overwrites the file bar.
Answers
C.
The command foo receives its stdin from the file bar.
C.
The command foo receives its stdin from the file bar.
Answers
D.
The command foo receives its stdin from the stdout of the command bar.
D.
The command foo receives its stdin from the stdout of the command bar.
Answers
E.
The stderr from the command foo is saved to the file bar.
E.
The stderr from the command foo is saved to the file bar.
Answers
Suggested answer: B
asked 18/09/2024
B M
32 questions

Question 60

Report
Export
Collapse

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
A.
kill -PIPE 123
Answers
B.
kill -KILL 123
B.
kill -KILL 123
Answers
C.
kill -STOP 123
C.
kill -STOP 123
Answers
D.
kill -TERM 123
D.
kill -TERM 123
Answers
Suggested answer: D
asked 18/09/2024
Rudrappa Sarvi
37 questions
Total 246 questions
Go to page: of 25