FINAL STUDY GUIDE
Which of the following commands will display the number of seconds that have elapsed since January 1, 1970?
date +%s
Emily accidentally created a new user account on the wrong server. Which of the following commands could she use to delete the account she created? (Choose all that apply.)
deluser userdel
Which of the following is the log file where Dandified YUM writes its log entries?
dnf.rpm.log
Which of the following commands can be used to modify configuration options for DPM packages after they have been installed?
dpkg-reconfigure
Which of the following is the log file where the Debian Package Manager writes entries for actions taken and packages installed?
dpkg.log
After a background process has been started, what command below can be used to move it to the foreground?
fg
You have started a job running in the background that you want to now bring to the front so that you can watch it execute. Which of the following commands can be used to display the job's output to the terminal?
fg
Which of the following commands can be used to remove a group from a Linux system? (Choose all that apply.)
groupdel delgroup
Which of the following commands can a user run to display the groups that they are a member of?
groups
Which of the following can be used to compare the hardware clock to the system clock, writing a new result to a new line every 10 seconds?
hwclock -c
Which of the following commands can be used to convert files between different character encodings?
iconv
Which of the following commands can be used to only show jobs that have been paused.
jobs -s
Which of the following commands can you use to view events within the journald database?
journalctl
Which of the following log files contains information and error messages generated by the Linux kernel?
kern.log
Chapter 8 Which of the following will invalid entries in the GRUB2 configuration cause?
kernel panic and halt the system
Which of the following commands will send a process's resources to /dev/null to kill the process for process ID 1357?
kill -9 1357
Which of the following commands will list missing libraries as not found if a necessary library is not installed?
ldd
Which of the following commands will show a number of environment variables that start with LC_?
locale
Which of the following commands can be used to display the current locale of a system? (Choose two.)
locale localectl
Chapter 11 After compiling source code, which command still needs to be run in order to copy the newly compiled binaries into a directory listed in the PATH variable as well as copy supporting files (such as man pages) to the correct location on the filesystem?
make install
Which of the following files holds the configuration information for GRUB Legacy on Ubuntu Linux systems?
menu.lst
Which of the following commands will generate a new initramfs?
mkinitrd dracut
Which of the following is the default window manager used by the GNOME version 3 desktop environment?
mutter
Which of the following can be used preceding a command to prevent a process from terminating when the parent process terminates?
nohup
Which of the following commands can be used to terminate a process by the process name?
pkill
Which of the following commands will show a list of process names along with their process ID (PID)? (Choose two.)
ps, top
What command is used to display the lineage of a process by tracing its PPIDs until the init daemon?
pstree
Which of the following characters, when pressed while the top program is running, will allow you to change the niceness of a process?
r
While the top command is running, what key can be pressed to change the nice value of a process?
r
Which of the following commands will install an RPM package while ignoring any other packages that it may be dependent upon for proper operation?
rpm -ivh --nodeps package.rpm
Which of the following commands will install a package using the Red Hat Package Manager, showing all information, while printing pound signs to show the progress of installation?
rpm -ivh packagename.rpm
Which of the following commands will show the current runlevel along with the previous runlevel? (Choose all that apply.)
runlevel
Which of the following hashing algorithm commands reduces the chances of collisions due to the bit length of the message digest?
sha256sum
Which of the following two commands can be used to add custom log file entries to the journald database? (Choose two.)
system-cat logger
Which of the following commands will set the default runlevel of a Linux system?
systemctl set-default runlevel5.target
Which of the following commands will display a list of Systemd units sorted by the time they took to load?
systemd-analyze blame
Which of the following options for the tar command will create an archive that is also gzipped while displaying all of the work in progress to the terminal screen?
tar -czvf
Which of the following commands will shut down a Linux system? (Choose all that apply.)
telinit 0 shutdown -h now poweroff
Which of the following commands will list the time zones available on a Linux system?
timedatectl list-timezones
Which of the following options can be specified in the GRUB Legacy configuration file to set how long the boot menu is displayed before loading the default image?
timeout
Which of the following commands will prompt you to answer a series of questions to help determine which time zone file you should use?
tzselect
Which of the following commands can be used to delete a user account?
userdel
Which of the following commands can be used to set the number of days until user account jsmith with an expired password is disabled?
usermod -f 15 jsmith
Which of the following is the first field of the /etc/passwd file?
username
Which of the following commands can be used to schedule very frequent recurring tasks, such as running once every minute?
watch
Which of the following is a special group that provides its members with the ability to run the su and sudo commands?
wheel
Which of the following states describe a process that is waiting for a parent process to release its PID?
zombie
If incompatible X Windows settings are configured, where will the errors that are generated be written to?
~/.xsession-errors
Which of the following entries could be added to the rsyslog.conf configuration file to have all syslog messages displayed to console 10?
*.*/dev/tty10
Which of the following RPM options will update a software package to the newest version, or install the package if it does not already exist on a system?
-U
Which of the following options can be used with the usermod command to change the description of the user account that is stored in the GECOS field?
-c
What option can be used with the ps command to display an entire list of processes across all Terminals, including daemons?
-e
When using the compress command to archive a set of files into a single file, which of the following options will display the compression ratio of the individual files making up the new compressed file?
-v
Which of the following file extensions are used by the Debian Package Manager?
.deb
Which of the following is not a valid compression file extension for the Linux operating system?
.vz
The System Log Daemon, rsyslogd, creates a socket for other system processes to write to. What is the path to this socket?
/dev/log
Which of the following is the full path and file name where the Debian Package Manager repositories can be configured?
/etc/apt/sources.list
A system administrator wants to allow most users to be able to run cron jobs, but wants to specifically prevent a couple of users from doing so. Which of the following files could the administrator edit to disallow these users from creating cron jobs?
/etc/cron.deny
In which directory would a system administrator store scripts that should be run monthly by the cron daemon?
/etc/cron.monthly
Which of the following files is where the default runlevel is set on some Linux systems?
/etc/inittab
Which of the following files contains the list of shared libraries?
/etc/ld.so.cache
Which of the following files is a binary file that contains the rules for calculating the time based on your time zone relative to epoch time?
/etc/localtime
In which file can you configure rules for logging on a Linux system?
/etc/rsyslog.conf
Chapter 10 In which of the following directories can you place files that will be copied to new user directories when new users are created?
/etc/skel
What is the path to where the journald.conf file is located?
/etc/systemd/journald.conf
In addition to /etc/localtime, some Linux distributions also have an /etc/timezone text file that contains a reference to the correct time zone file contained in which directory?
/usr/share/zoneinfo
Where are the files stored that contain information for all of the time zones that could be recognized by a Linux operating system?
/usr/share/zoneinfo
Which of the following files stores information about failed logins on a Linux system?
/var/log/btmp
Where are scheduled commands stored on Ubuntu Linux systems?
/var/spool/cron/atjobs
Which of the following is the highest value that can be set for the nice value which would result in a greater chance of a lower priority?
19
Which of the following commands can you use to send a print job to printer1? (Choose all that apply.)
1p -d printer1 mydocument.txt 1pr -P printer1 mydocument.txt
Which of the following commands can be used to set the default printer for all users on a Linux system where printer1 is the name of the printer?
1poptions -d printer1
Which of the following commands will display the print jobs in the print queue for printer1 only?
1pstat -o printer1
Which of the following is the default desktop environment used by Linux Mint?
Cinnamon
If a process state is currently showing as uninterruptible sleep, which letter will show in the output of the ps command?
D
Which of the following is an on-screen keyboard used with Linux?
GOK
Which of the following commands can be used to see files that are currently being used by a specific process ID (PID)?
Isof
Which of the following options is passed to the Linux kernel from the GRUB2 configuration file to set the locale?
LANG
Which of the following environment variables can you change the value of to set the default printer on a Linux system? (Choose two.)
PRINTER LPDEST
Which kill signal terminates a process by taking the process information in memory and saving it to a file called core on the hard disk in the current working directory?
SIGQUIT
Which of the following does Click Assist do?
Simulates a right click by holding down the left mouse button.
Which of the following accessibility features simulates simultaneous key presses when two keys are pressed in sequence?
Sticky Keys
Which of the following is a valid Linux initialization process?
Systemd SysV
Which of the following system variables can you modify to override the default system timezone within your current shell?
TZ
Which of the following does a Linux kernel use to store the value of epoch time?
The number of seconds since January 1, 1970
Which of the following is responsible for starting tasks and services during boot, stopping them during shutdown, and supervising them while the system is running?
Upstart
What is contained in the DISPLAY variable on a Linux system running the X window system?
Which X server the client is supposed to connect to by default.
Which of the following is a lightweight desktop environment that uses very few system resources that a system administrator might choose to install on a Linux server instead of one of the two main desktop environments?
XFCE
Which of the following is a tool that can be used to search Internet software repositories for RPM packages that map to your system's architecture, and automatically install or upgrade those packages on your system?
YUM
Which of the following package managers are used to install RPM packages on the SUSE or openSUSE distributions by default?
Zypper
Which of the following commands can be used to install the latest versions of all packages currently installed on the system from the sources configured in sources.list?
apt upgrade
A system administrator wants to schedule a task to run at 11 pm, but knows that she will not be in the office at that time. Which of the following commands can she use to schedule this task to run that night while she is at home?
at
Which of the following commands will display a list of the pending jobs to be run? (Choose all that apply.)
at -l atq at -q
Which of the following command can be used to remove a job from the list of pending jobs? (Choose all that apply.)
atrm at -r at -d
Which of the following will display the contents of the /etc/shadow file? (Choose all that apply.)
cat /etc/shadow getent /etc/shadow
Which of the following will show account aging information for a user such as the date of the last password change, when the password expires, and the number of days of warning before the password expires?
chage -I jsmith
Which of the following commands can be used to back up files in case of system failure, supports long filenames, and can also back up device files?
cpio
Which of the following commands will show the current user cron jobs that have been created for the currently logged in user?
crontab -l
Chapter 9 You have run the top command successfully, but realize that the q key on the keyboard has suddenly stopped working. What is another way that you can exit out of the top program?
ctrl-c
Which of the following commands can be used to pause a printer named Printer1?
cupsdisable Printer1