Exam Questions and CORRECT Answers
Which of the following commands is used to update the list of available packages when using
Debian based package management?
A. apt update
B. apt upgrade
C. apt refresh
D. apt install - CORRECT ANSWER✔✔- A. apt update
Which RPM command will output the name of the package that supplied the /etc/exports file?
A. rpm -f /etc/exports
B. rpm -qf /etc/exports
C. rpm -qi /etc/exports
D. rpm -qp /etc/exports - CORRECT ANSWER✔✔- B. rpm -qf /etc/exports
Find answer here: https://linuxize.com/post/rpm-command-in-linux/
What is detailed by a Free Software license?
A. Details of the technical documentation.
B. The programming languages that may be used to keep the license.
C. A list of libraries required to compile the licensed software.
D. Conditions for distributing and modifying the licensed software. - CORRECT
ANSWER✔✔- D. Conditions for distributing and modifying the licensed software.
Which of the following commands lists the dependencies of a given dpkg package?
A. apt depends-onpackage
B. apt dependencies package
C. apt show package
D. apt requires package - CORRECT ANSWER✔✔- C. apt show package
,Which of the following are common services offered by public cloud providers? (Choose
three correct answers)
A. Infrastructure as a Service (IaaS)
B. Platform as a Service (PaaS)
C. Net as a Service (NaaS)
D. Graphics as a Service (GaaS)
E. Software as a Service (SaaS) - CORRECT ANSWER✔✔- A. Infrastructure as a Service
(IaaS)
B. Platform as a Service (PaaS)
E. Software as a Service (SaaS)
Which command is used to get information on the proper use of ls?
A. option ls
B. man ls
C. usage ls
D. show ls - CORRECT ANSWER✔✔- B. man ls
Which of the following characters in a shell indicates that the shell is running with superuser
(root) privileges?
A. #
B. *
C. &
D. $ - CORRECT ANSWER✔✔- A. #
What is the purpose of using the command ls -r?
A. To include the permissions of a listed directory.
B. To include the details of file system internals.
C. To include file permissions.
D. To include the contents of sub-directories. - CORRECT ANSWER✔✔- D. To include the
contents of sub-directories.
, Which of the following commands can be used to remove the 'Documents' directory?
(Choose two correct answers)
A. undir Documents
B. rmdir Documents
C. rm -r Documents
D. dir -r Documents - CORRECT ANSWER✔✔- B. rmdir Documents
C. rm -r Documents
Which of the following commands add the directory /new/dir/ to $PATH? (Choose two
correct answers)
A. $PATH=/new/dir: $PATH
B. PATH=/new/dir: $PATH
C. Import PATH=/new/dir: $PATH
D. export PATH=/new/dir: $PATH - CORRECT ANSWER✔✔- B. PATH=/new/dir: $PATH
C. Import PATH=/new/dir: $PATH
When johnd, who is currently in the directory /home/johnd/Downloads/, runs the command ls
../Documents/, which directory's contents will be displayed?
A. /home/johnd/Documents/
B. /home/johnd/Downloads/Documents/
C. /Documents/
D. /home/Documents - CORRECT ANSWER✔✔- A. /home/johnd/Documents/
A directory includes the files a.py, b.py, and c.txt. Which command will copy the two files
ending in .py to the /tmp/ directory?
A. cp !!.py /tmp/
B. cp *.py /tmp/
C. cp. \.py /tmp/
D. cp #.py /tmp/
E. cp $?.py /tmp/ - CORRECT ANSWER✔✔- B. cp *.py /tmp/