You are on page 1of 4

LPI 1

1. Which program updates the database that is used by the locate command? (Specify ONLY the
command
without any path or parameters).
Correct Answer: updated
2. Which command displays the current disk space usage for all mounted file systems? (Specify
ONLY the
command without any path or parameters.)
Correct Answer: du
3. Which file in the /proc filesystem lists parameters passed from the bootloader to the kernel?
(Specify the file
name only without any path.)
Correct Answer: cmdline
4. Which program runs a command in specific intervals and refreshes the display of the program’s
output?
(Specify ONLY the command without any path or parameters.)
Correct Answer: watch
5. Which command is used to start another command with a given nice level? (Specify ONLY the
command
without any path or parameters.)
Correct Answer: nice
6. What directory contains configuration files for additional yum repositories? (Specify the full path
to the
directory.)
Correct Answer: /etc/yum.conf
7. Which file defines the network locations from where the Debian package manager downloads
software
packages?
A. /etc/dpkg/dpkg.cfg
B. /etc/apt/apt.conf.d
C. /etc/apt/apt.conf
D. /etc/dpkg/dselect.cfg
E. /etc/apt/sources.list
Correct Answer: E
8. The installation of a local Debian package failed due to unsatisfied dependencies. Which of the
following
commands installs missing dependencies and completes the interrupted package installation?
A. dpkg --fix --all
B. apt-get autoinstall
C. dpkg-reconfigure --all
D. apt-get all
E. apt-get install -f
Correct Answer: E
9. Which file from the /proc/ file system contains a list of all currently mounted devices? (Specify
the full name
of the file, including path.)
Correct Answer: /proc/mounts
10. Following the Filesystem Hierarchy Standard (FHS), where should binaries that have been
compiled by the
system administrator be placed in order to be made available to all users on the system? (Specify
the full path
to the directory.)
Correct Answer: /usr/local/bin/
11. Which command displays a list of all background tasks running in the current shell? (Specify
ONLY the
command without any path or parameters.)
Correct Answer: jobs
12. Which command is used to change the priority of an already running process? (Specify ONLY the
command
without any path or parameters.)
Correct Answer: renice
13. Which System V init configuration file is commonly used to set the default run level? (Specify the
full name of
the file, including path.)
Correct Answer: /etc/inittab

LPI 2
1. Which command is used to set the hostname of the local system? (Specify only the command
without any
path or parameters.)
Correct Answer: hostname

2. What command, depending on its options, can display the open TCP connections, the routing
tables, as
well as network interface statistics? (Specify only the command without any path or parameters.)
Correct Answer: netstat

3. Which command included in NetworkManager is a curses application which provides easy acces
to the
NetworkManager on the command line? (Specify only the command without any path or
parameters.)
Correct Answer: nmtui

4. Which file, if present, must contain all users that are allowed to use the cron scheduling system?
(Specify
the full name of the file, including path.)
Correct Answer: crontab

5. Which file, if present, must contain all users that are allowed to use the cron scheduling system?
(Specify
the full name of the file, including path.)
Correct Answer: crontab

6. Which command must be run after adding a new email alias to the configuration in order to make
this
change effective? (Specify the command without any path but including all required parameters.)
Correct Answer: newaliases

7. Which command, available with all sendmail-compatible MTAs, is used to list the contents of the
MTA’s
mail queue? (Specify only the command without any path or parameters.)
Correct Answer: mailq

8. What is the top-level directory which contains the configuration files for CUPS? (Specify the full
path to the
directory.)
Correct Answer: /etc/cups/ cups-files.conf

9. Which option in the /etc/ntp.conf file specifies an external NTP source to be queried for time
information? (Specify only the option without any values or parameters.)
Correct Answer: server

10. What command list the aliases defined in the current Bash shell? (Specify only the
command without any
path or parameters.)
Correct Answer: alias

11. When using X11 forwarding in SSH, what environment variable is automatically set in the
remote shell in
order to help applications to connect to the correct X11 server? (Specify only the environment
variable
without any additional commands or values.)
Correct Answer: DISPLAY

12. The presence of what file will temporarily prevent all users except root from logging into a
system? (Specify
the full name of the file, including path.)
Correct Answer: /sbin/nologin

13. Which file is processed by newaliases? (Specify the full name of the file, including path.)
Correct Answer: /etc/mail/aliases

14. Which command is used to sync the hardware clock to the system clock? (Specify only
the command
without any path or parameters.)
Correct Answer: hwclock

15. What command is used to add OpenSSH private keys to a running ssh-agent instance?
(Specify the
command name only without any path.)
Correct Answer: ssh-add

16. Which directory holds configuration files for xinetd services? (Specify the full path to the
directory.)
Correct Answer: /etc/xinetd.d/

17. Which parameter of the ssh command specifies the location of the private key used for
login attempts?
(Specify only the option name without any values or parameters.)
Correct Answer: ssh-keygen

18. Which parameter is missing in the command


ip link set ____ dev eth0
to activate the previously inactive network interface eth0? (Specify the parameter only without any
command, path or additional options.)
Correct Answer: up

19. What command enables a network interface according to distribution-specific


configuration, such as /etc/
network/interfaces or /etc/sysconfig/network-scripts/ifcfg-eth0? (Specify only the
3B1AA28A8E93F02C1A3BCC4E4501E410
command without any path or parameters.)
Correct Answer: up

20. What option to useradd creates a new user’s home directory and provisions it with a set of
standard files?
(Specify only the option name without any values or parameters.)
Correct Answer: -D

21. Which environment variable is used by an X11 client to determine the X Server to
connect to? (Specify only
the variable name without any preceding commands or values.)
Correct Answer: DISPLAY

22.

You might also like