THE FOLLOWING COMPTIA LINUX+ EXAM OBJECTIVES ARE COVERED IN THIS CHAPTER: Which command enables you to view the current IRQ assignments?
Configuration of udev devices is done by working with files in which directory?
Which command is used to obtain a list of USB devices?
During the initialization process for a Linux system using SysVinit, which runlevel corresponds to single user mode?
On a system using SysVinit, in which directory are startup and shutdown scripts for services stored?
Which command can be used to reboot a system?
When working with a SysV system, which A drive connected to USB will be considered to be which type of device?
Which option within a What is the command to display the default target on a computer running Which option of the Which of the following best describes the Which command is used to update the links and cache for shared libraries on the system?
Which command and option are used to update a Debian system to the latest software?
Which option given to a When working with an Which command is used to determine the libraries on which a given command depends?
Which command will retrieve information about the USB connections on a computer in a tree-like format?
How many SCSI devices are supported per bus?
Which command and option can be used to determine whether a given service is currently loaded?
Which command on a Which command would you use if you make changes to the Which command displays the current runlevel for a system?
Within which folder are Which option best describes the following, gathered with the Which command is used with Which option to Within which directory is information about USB devices stored?
A Serial ATA (SATA) disk will use which of the following identifiers?
When partitioning a disk for a mail server running Postfix, which partition/mounted directory should be the largest in order to allow for mail storage?
Which Which options for the Which command will search for a package named Within which directory will you find the repositories used by Which Which of the following is not typically used to store shared libraries?
Which of the following commands updates the package cache for a Debian system?
You need to update the configuration files for package repositories. Within which file are details of the current package repositories stored on a Debian system?
Which command should be used to make changes to the choices made when a Debian package was installed?
Which option for Which command option for Which option in Which command searches for and provides information on a given package on a Debian system, including whether the package is currently installed?
Which of the following installs a previously downloaded Debian package?
You need to download source code for a package to install. The package has a You need to obtain information about a package installed on an OpenSUSE system that uses the You need to find available packages on a Fedora system managed by the When using Which option for the What is the default number of lines printed by the You are attempting to use Which command will find directories with names beginning with Which of the following commands will provide the usernames in a sorted list gathered from the Which options to What will be the result if the Which option to both Which of the following commands will send the contents of The current hierarchy on the server contains a directory called Which option to the What is the default delimiter used by the What command is used to bring a command to foreground processing after it has been backgrounded with an You are using the Vi editor to change a file, and you need to exit. You receive a notice indicating “No write since last change.” Assuming you want to save your work, which of the following commands will save your work and exit Vi?
What option is used to change the number of lines of output for the You have attempted to stop a process using its When working in the bash shell, you need to redirect both Which of the following When editing with Vi, which command changes into insert mode and opens a new line below the current cursor location?
Which kill signal can be sent in order to restart a process?
Which of the following commands searches each user’s Which Which command will move all files with a Assume that you have a file called You’re working with a file using the Which command can be used to determine the location of a given executable that would be run if typed from your current environment and location?
Another administrator made a change to one of the local scripts stored in Which command can be used to print the inode index number of files?
Which option to Which of the following commands can be used if you need to locate various elements of a given command, such as its binaries and man pages?
Which command is used to execute a check of user quotas on the filesystem?
When using Which command and option will output a summary of quota usage across all filesystems that are currently read-write with quotas enabled?
The You need to enable the web server (running as the Which option to the What is the order in which user configuration files are located on login to a bash shell?
Within which directory should you place files to have them automatically copied to a user’s home directory when the user is created?
Which bash parameter or option will cause the shell to be executed without reading the initialization files?
You need to create a function that will be available each time that you log in to the system. Within which file should this function be placed?
Which section in Assuming X forwarding has been enabled on the SSH server, which environment variable is used to set the location for newly spawned windows from within an SSH session?
Within the greeter section of a display manager such as GDM in Gnome, which option sets the welcome message for users logging in locally?
Within Gnome, you need to add the accessibility option known as sticky keys. Which key should be pressed five times in a row to enable sticky keys?
Which program is used in a Gnome environment as a screen reader?
When using KDE, which program provides magnification functionality?
Which of the following options in the SSH configuration file needs to be enabled so that X sessions can be sent over an SSH connection?
Which file contains user information such as username and real name and is readable by all users of the system?
Which of the following will execute a job through Which file is used to provide a list of users that can add and delete Which of the following commands schedules a series of commands to execute one hour from now?
You need to delete a user from the system, including their home directory. Which of the following commands accomplishes this task?
Which of the following commands changes a group called Within which directory would you find a list of files corresponding to the users who have current Which command deletes an Which of the following is used as a system-wide Within which directory will you find scripts that are scheduled to run through When running Which of the following commands locks out password-based login for a user but does not prevent other forms of login?
Which of the following will run a command called Which of the following commands produces a report listing the last password change date for all users on the system?
Which file contains a list of usernames, UIDs, and encrypted passwords?
When configuring an authentication server, which of the following best describes the relationship between UIDs and GIDs on a Linux system?
Which command is used to change a user’s home directory to Which option to Assume that passwords must be changed every 60 days. Which command will change the date of the user’s last password change without the user actually changing the account password?
Which command will list the Which option to Which file contains encrypted password information for groups?
Which of the following best describes the use of the Which of the following commands displays the UID, primary group, and supplemental groups for a given user?
Which option to the Assume that you have deleted a user account with UID 1501, including the When configuring a local NTP server role, to what server address can you set the server’s NTP client?
When configuring a server for a mail server role, which command must you run after making a change to email aliases, assuming the server is running Postfix?
Within which directory hierarchy will you find configuration files related to printing with the CUPS printing system on a print server?
Within which directory will you find the mail queue on a Qmail server?
You are creating a logging server. Which When running the NTP daemon, which command can you execute to work with the NTP server in an interactive mode?
Which of the following commands places a file into the print queue?
What is the default port for the CUPS administrative web interface?
Which of the following URLs can be used to view a list of completed print jobs in CUPS?
Which of the following commands causes the mail queue to be processed on a Postfix server? A developer has created an application and wants to take advantage of A user needs to work with printers and printer-related items. Which of the following commands adds the user (called Which command can be used to gather and display statistics about mail processed on a server running Which of the following commands can be used to restart CUPS on a server running When configuring a server for an SNMP server role, which ports need to be allowed through the firewall for SNMP traffic?
You need to look at information on logins beyond what was captured by the current log file for the last command. Which option to the last command can be used to load information from an alternate file?
You need to examine who is currently logged in to the system. Which of the following commands will display this information?
When expiring a user account with Which of the following commands can be used to stop a given service, such as Within the following entry in You need to deploy a monitoring solution that enables alerts along with advanced scripted responses based on configurable performance conditions. Which of the following software packages performs these tasks?
You are upgrading the kernel that has been previously compiled on the same server. Which of the following commands incorporates the contents of the existing kernel configuration into the new kernel?
Which of the following commands is used to view kernel-related Which of the following commands should you execute after making changes to Which of the following files contains the runlevels for the system along with a reference to the corresponding Within which hierarchy are files from As a systems administrator, you need to change options for You have purchased new SSD hardware that uses the NVMe protocol, but you cannot find the disks in the normal Which of the following directory hierarchies contains information such as the WWN for Fibre Channel?
Information about logical volumes can be found in which of the following directories?
When configuring WiFi, which of the following commands displays information such as link status about the wireless device You are configuring a DHCP server. Which of the following commands will examine the system log for information regarding DHCP activity?
Which option to Which option to the When compiling software such as with the You have downloaded a source file with the extension Which target for When creating a local package repository, which option within the When running the Which command can be used to search the contents of all files below your current location for files that contain the characters DB?
You are working with a file server, and clients are reporting that the filesystems shared over NFS have become unreachable. Which option should be passed to Which character combination sets the body of the message to Which of the following commands displays a listing of who is logged in to the server along with the date and time that they logged in?
Which configuration file is used as the default configuration for a BIND server?
When creating a certificate authority server role, which of the following commands generates a private key for use with SSL and places it into the file When creating a Squid proxy configuration, you need to create an access control list for the local network. Which configuration option creates an access control list for Squid?
Which directive in a Squid configuration configures whether a given ACL can use the proxy?
Which of the Samba daemons is responsible for responding to NetBIOS name service requests?
Which of the following options within an OpenSSH server configuration is used to determine whether the root user can log in directly with an SSH client?
Which option within an OpenVPN configuration lets a client know that it can reach the network What is the name of the environment variable that is set if your display session is using Wayland?
Which command can be used to view device information such as interrupts?
When working with the You will be deploying a large server solution with Linux as the base operating system. The server resources will be split into multiple, smaller virtual servers running Linux and Windows. Which of the following best describes the name for this type of server role and technology?
You need to restart an Apache server running on an older, non- When using the NX or NoMachine display for access, which configuration option sets the display port?
When choosing a login type, which of the following best describes the difference between the options titled Cinnamon and Cinnamon (Software Rendering)?
When using a Raspberry Pi with Raspbmc Linux, you need to configure the system to turn on an LED. Which of the following is the interface typically used for this purpose?
Which of the following commands can be used to troubleshoot boot times of various services?
You are troubleshooting an issue with HAProxy as a load balancer. Users are reporting that they have received a “400” response from the HAProxy server. What does a “400” response mean?
In the MATE desktop environment, which of the following is the name of the file manager?
Which option to SSH creates a port forwarding to which remote clients can also connect?
Which option to the When executed on a You need to compare two files to determine if there are differences between them. Which command can be used for this purpose?
Which directive within an Apache configuration file facilitates serving websites for more than one domain using a single IP address?
Which subcommand of Which signal to the You are troubleshooting a daemon process and have started the daemon manually from the command line so that it does not fork into the background. Which key combination can be used to terminate the daemon?
You need to redirect output to a file, but rather than overwriting the existing file, the output should be appended instead. Which character combination is used to indicate that Which service command is used to shut down a service?
Which port is the default base port for use with VNC?
Which of the following directories is used with the automatic bug-reporting tool in CentOS 7?
Which of the following commands is used with Which command with As a system administrator, you have a custom service that needs to execute on boot. However, the service does not have the traditional service-management script. Within which file could you place the command so that it is executed on boot?
Which of the following commands is used to control a BIND name server?
You are tasked with configuring a cluster server role using Red Hat Enterprise Linux. Which of the following filesystems will most likely be used?
Within which stanza would you add a video device when configuring Spice remote access?
You need to redirect Which option to Which option to the Which of the following commands adds a group?
Which command enables you to determine the username associated with your current user ID?
Within which directory should scripts and other files to run at login be stored?
The Unity desktop is typically found on which distribution of Linux?
Startup commands that are executed on boot for You are attempting to stop a daemon on a system that previously used SysVinit but now uses When configuring a monitor for use with X11, within which section should details of the monitor be changed?
You need to redirect output for a long-running process but do not need to see or capture the output. To which location can you redirect output so that it does not consume disk space?
Which option to the Which target for the When configuring environment parameters for use with Which operator is used to redirect While configuring a network adapter with Within which directory would you typically find the Xorg configuration file Which command is used to view the mixer volumes when configuring audio with ALSA?
Which package provides an open source implementation of the Remote Desktop Protocol?
You are configuring a database service and need to open the default port for MySQL. Which port is the default for MySQL?
You need to determine which video card is installed in a Linux system. Which command can be used to help with this purpose?
You have executed a daemon process manually from the command line and now need to suspend the process. Which key combination can be used for this purpose?
When configuring Apache for a web server role, which of the following directives tells the server the location of the SSL private key?
Which command is used for setting parameters such as the essid, channel, and other related options for a wireless device?
Which command can be used to convert lowercase letters to uppercase letters across an entire file?
You have been asked to recommend a simple command-line-based text editor for a beginning user. Which of the following should you recommend?
You need to ensure that a service does not start on a Which of the following commands is a simple pager that is found on most Linux systems?
Which of the following is an operator for redirecting Which device is used as the terminal for the current process?
Which command can be used to print using a specially formatted string?
You need to remove a series of files programmatically through a script. Which command can be used to remove these files?
You need to copy a file to a remote system, but that remote system does not have FTP or any other file-sharing services running. You have the ability to SSH into the server. Which of the following commands can be used for this purpose?
Which HTTP status code is returned when TraceEnable has been set to Off within Apache?
You are running a process in the background and need the process to continue after you log out. Which command should be used to ensure that the process continues even after logout?
You have inserted a USB Bluetooth device into the computer. Which of the following commands is used to determine if the device was detected?
make
make install
ldd
wget
curl
useradd
groupadd
usermod
groupmod
passwd
chage
userdel
groupdel
id
whoami
who
w
last
.bashrc
.bash_profile
.profile
/etc/bashrc
/etc/profile.d/
/etc/skel
/etc/profile
/etc/passwd
/etc/group
/etc/shadow
nano
vi
grep
cat
tail
head
less
more
stdin
stdout
stderr
/dev/null
/dev/tty
xargs
tee
grep
tr
echo
sort
awk
sed
cut
printf
egrep
wc
paste
touch
mv
cp
rm
scp
ls
rsync
mkdir
rmdir
ln
unlink
inodes
find
locate
grep
which
whereis
diff
updatedb
SysVinit
chkconfig
on
off
level
/etc/init.d
/etc/rc.d
/etc/rc.local
/etc/inittab
runlevel
telinit
cron
at
crontab
fg
bg
&
kill
nohup
lsdev
lsusb
lspci
lsblk
dmesg
lpr
lpq
abrt
udevadm
add
reload-rules
trigger
/proc
/sys
/dev
/dev/mapper
/etc/X11
/etc/rc5/udev
/etc/udev/rules.d
view /proc/irq
cat /proc/interrupts
cat /dev/irq
less /dev/irq
/udev/devices
/devices/
/udev/config
/etc/udev
usb-list
lsusb
ls-usb
ls --usb
/etc/init-d
/etc/init
/etc/sysV
/etc/init.d
init 6
shutdown
-h
-t now
init 1
refresh-system
chkconfig
option will display all services and their runlevels?
––reload
––list
––all
––ls
systemd
service file indicates the program to execute?
StartProgram
ShortCut
ExecStart
Startup
systemd
?
systemctl defaults
update-rc.d defaults
systemctl runlevel
systemctl get-default
systemctl
command will change a service so that it runs on the next boot of the system?
enable
startonboot
loadonboot
start
/proc
filesystem?
/proc
contains information about files to be processed./proc
contains configuration files for processes./proc
contains information on currently running processes, including the kernel./proc
contains variable data such as mail and web files.
ldcache
cache-update
link-update
ldconfig
apt-update
apt-get upgrade
dpkg -U
apt-cache clean
yum
command will install a given package?
update
configure
install
get
rpm
package file and using rpm2cpio
, by default the output is sent to which location?
STDOUT
cpio.out
a.out
/tmp/cpi.out
ldconfig
librarylist
listdeps
ldd
lsusb -tree
lsusb ––tree
lsusb -t
usblist ––tree
systemctl ––ls
telinit
systemctl status
sysctl -a
systemd
-controlled system would place the system into single-user mode?
systemctl one
systemctl isolate rescue.target
systemctl single-user
systemctl runlevel one
/etc/inittab
file and want those changes to be reloaded without a reboot?
init-refresh
init 6
telinit
reload-inittab
show-level
init --level
sudo init
runlevel
systemd
unit configuration files stored?
/etc/system.conf.d
/lib/system.conf.d
/lib/systemd/system
/etc/sysconfd
ls -la
command?lrwxrwxrwx. 1 root root 35 Jul 8 2014 .fetchmailrc -> .configs/fetchmail/.fetchmailrc
.fetchmailrc
that is linked using a symbolic link..configs/fetchmail/.fetchmailrc
that is owned by lrwxrwxrwx
..fetchmailrc
that is owned by user Jul..configs/fetchmail/.fetchmailrc
.systemd
in order to list the available service units?
systemd list-units
systemctl list-units
systemd unit-list
systemctl show-units
lspci
is used to display both numeric codes and device names?
-numdev
-n
-nn
-devnum
/etc/usbdevices
/var/usb
/lib/sys/usb
/proc/bus/usb
/dev/hdX
/dev/sataX
/dev/sdX
/disk/sataX
/etc
/usr/bin
/mail
/var
yum
option displays the dependencies for the package specified?
list
deplist
dependencies
listdeps
rpm
command will display verbose output for an installation along with progress of the installation?
-ivh
-wvh
––avh
––ins-verbose
zsh
on a Debian system?
apt-cache search zsh
apt-get search zsh
apt-cache locate zsh
apt search zsh
yum
?
/etc/yum.conf
/etc/repos
/etc/yum.conf.d
/etc/yum.repos.d
rpm
option can be used to verify that no files have been altered since installation?
-V
-v
––verbose
––filesum
/lib
/etc/lib
/usr/lib
/usr/local/lib
apt-get cache-update
apt-cache update
apt-get update
apt-get upgrade
/etc/apt.list
/etc/sources.list
/etc/apt/sources.list
/etc/apt.d/sources.list
dpkg-reconfigure
dpkg -r
dpkg ––reconf
apt-get reinstall
yum
performs a search of the package cache?
seek
query
––search
search
rpm
can be used to show the version of the kernel?
rpm kernel
rpm -q kernel
rpm search kernel
rpm ––list kern
/etc/yum.conf
is used to ensure that the kernel is not updated when the system is updated?
exclude=kernel*
exclude-kernel
updatekernel=false
include-except=kernel
dpkg -i
dpkg -s
apt-cache
apt-info
dpkg -i <package name>
apt-install <package name>
apt-slash <package name>
dpkg -U <package name>
.tgz
file extension. Which of the following commands decompresses and unarchives the package?
tar -xvf
tar -zcvpf
tar -zxvf
tar -xf
zypper
command. Which of the following options to the zypper
command displays information about the package?
inf
getInfo
info
i
dnf
package system. Which option to the dnf
command looks for a given package?
search
info
find
locate
sed
for a substitution operation, which option must be included so that the substitution applies to the entire line rather than just the first instance?
g
a
r
y
wc
command prints the number of lines given as input?
-f
-a
-l
-o
head
and tail
commands, respectively?
head
, 5 for tail
head
, 10 for tail
head
and tail
head
and tail
rmdir
to remove a directory, but there are still multiple files and other directories contained within it. Assuming that you’re sure you want to remove the directory and all of its contents, what are the command and arguments to remove the directory and all of its contents?
rm -f
rm -rf
rmdir -a
rmdir -m
2019
located beneath the current directory?
find ./ -name "2019"
find ./ -type d -name "2019"
find / -type d "2019"
find ./ -type d -name "2019*"
/etc/passwd
file?
cat /etc/passwd | awk -F : ’{print $1}’ | sort
sort /etc/passwd | cut
echo /etc/passwd
cat /etc/passwd | awk ’{print $1}’ | sort
ls
will produce output, including hidden (dot) files, in a list that is ordered such that the newest files are at the end of the output?
-la
-lat
-latr
-ltr
touch
command is executed on a file that already exists?
touch
command was executed.mv
and cp
will cause the command to prompt before overwriting files that already exist?
-f
-Z
-r
-i
/etc/passwd
to both STDOUT
and a file called passwordfile
?
cat /etc/passwd > passwordfile
var /etc/passwd | passwordfile
cat /etc/passwd | tee passwordfile
echo /etc/passwd | stdout > passwordfile
/usr/local
. You need to create an additional directory below that called /usr/local/test/october
. Which command will accomplish this task?
mkdir -p /usr/local/test/october
mkdir /usr/local/test/october
mkdir -r /usr/local/test/october
mkdir -f /usr/local/test/october
cp
command will copy directories in a recursive manner?
-v
-R
-Z
-i
cut
command?
&
?
bg
fore
4g
fg
:wq
:q!
dd
x
head
and tail
commands?
-l
-f
-g
-n
service
command and also using the kill
command. Which signal can be sent to the process using the kill
command in order to force the process to end?
-15
-f
-9
-stop
STDOUT
and STDERR
. Which of the following commands will redirect both STDOUT
and STDERR
?
1>2
>2
2>&1
>>
egrep
commands will examine /etc/passwd
to find users that are using either /bin/bash
or /usr/bin/zsh
for their shell environment?
grep sh /etc/passwd
egrep ’/*/.sh$’ /etc/passwd
grep ’/*/.=sh$’ /etc/passwd
egrep ’/*/..?sh$’ /etc/passwd
f
a
o
i
-HUP
-RESTART
-9
-SIG
.bash_history
file to determine if the user has invoked the sudo
command?
find /home -name "bash_history" | grep sudo
find /home -name ".bash_history" | xargs grep sudo
find /home/.bash_history | xargs grep sudo
find /home -type history | xargs grep sudo
find
command will locate files within the current directory that have been modified within the last 24 hours?
find ./ -type f -mtime 1
find ./ -type f -mtime 24
find ./ -type f -mtime +1
find ./ type -f time 24
.txt
extension to the /tmp
directory?
mv txt* tmp
move *txt /temp
mv *.txt /tmp
mv *.txt tmp
zips.txt
that contains several postal zip codes, and you need to determine how many unique zip codes there are in the file. Which of the following commands can be used for that purpose?
sort zips.txt | uniq -c
uniq zips.txt
count zips.txt
cat zips.txt | uniq -c
less
command and need to search for instances of a string earlier in the file. Which key will search backward in the file?
which
what
whatis
when
/usr/local/bin
and used for administrative purposes. The change was also immediately reflected in the copy of the script in your home directory. However, when you examine the file with ls
, it appears to be a normal file. What is the likely cause of such a scenario?
in -l
ln -i
ls -i
inodelist
ln
creates a symlink to another file?
-sl
-s
-l
--ln
whatis
find
whereis
ls
quota -u
runquota -u
qcheck -u
quotacheck -u
ls -la
to obtain a directory listing, you see an object with permissions of lrwxrwxrwx
. What type of object is this?
repq -a
repquota -a
quotarun -a
quota -u
locate
command is reporting out-of-date information. Which command should be run in order to have the locate
command update its database?
locatedb -u
locate -u
updatedb
updatelocate
www-data
user and group) to write into a directory called /home/webfiles
. Which commands will accomplish this task in the most secure manner?
chgrp www-data /home/webfiles ; chmod 775 /home/webfiles
chmod 777 /home/webfiles
chgrp www-data /home/webfiles ; chmod 711 /home/webfiles
chmod 707 /home/webfiles
find
command will search for files by their inode number?
-inode
-type
-in
-inum
.bash_login
, .profile
, /etc/profile
.bash_profile
, .bash_login
, .profile
.profile
, .bash_login
, .bash_profile
.bash_login
, .bash_profile
, .profile
/etc/userhome
/etc/templateuser
/etc/skel
/home/skel
--no-rc
--no-init
--norc
--rc-none
.bash_profile
.rc
/etc/profile
.bash_run
/etc/X11/xorg.conf
is used to describe configurations for a given graphics card and monitor pair?
Server
Screen
VidMode
Video
DISPLAY
XTERMINAL
XTERM
XDISP
LoginMessage
Login
WinGreet
Welcome
xmag
mag
pmag
kmag
X11Connect yes
X11Forwarding yes
ForwardX yes
XForward yes
/etc/pass
/etc/shadow
/etc/passwd
/etc/userinfo
cron
at 12:15 a.m. and 12:15 p.m. every day?
0,12 15 * * *
15 0,12 * * *
15 * * * 0/12
*/12 * * * 15
cron
jobs?
/etc/cron.job
/etc/cron.allow
/etc/cron.users
/etc/crontab
atq +1hr
at now + 1 hour
atq
at -1
userdel
userdel -r
userdel -R
deluser
DomainAdmins
to DomainUsers
?
groupmod -n DomainAdmins DomainUsers
groupchg DomainAdmins DomainUsers
chgroup DomainAdmins DomainUsers
group -N DomainAdmins DomainUsers
cron
jobs on the system?
/var/spool/cron/crontabs
/var/spool/jobs
/etc/cron
/etc/cron.users
at
job with an ID of 3?
atq
at -l
atrm 3
rmat 3
cron
file?
/etc/cron.d
/etc/cron.sys
/etc/crontab
/etc/cron.tab
cron
every 24 hours?
/etc/cron.daily
/etc/cron.weekly
/etc/cron.hourly24
/etc/crontab
useradd
, which option needs to be specified in order for the user’s home
directory to be created?
-h
-m
-x
-a
usermod -L
userdel -r
useradd -h
userlock
/usr/local/bin/changehome.sh
as the www-data
user when placed in /etc/crontab
?
1 1 * * * www-data /usr/local/bin/changehome.sh
www-data changehome.sh
*/1 www-data changehome.sh
* * */www-data /usr/local/bin/changehome.sh
passwd -a
passwd -S
passwd -a -S
passwd --all
/etc/passwd
/etc/shadow
/etc/encpass
/etc/grouppass
/srv/data/username
and move the contents at the same time?
usermod -d /srv/data/username -m
homedir -m /srv/data/username
userex -m /srv/data/username
userchg /m /srv/data/username -d
useradd
will add groups for a user?
-g
-x
-l
-G
chage -f
chage -W
chage -l
chage -d
cron
entries for a given user as denoted by <username>
?
crontab -l -u <username>
crontab -u <username>
cron -u <username>
cronent -u <username>
useradd
creates a system user rather than a normal user?
-r
-s
-a
-S
/etc/group
/etc/gshadow
/etc/gsecure
/etc/group.conf
groupdel
command?
-f
option.Groupdel
can be run at any time, regardless of group membership.-r
option for groupdel
will recursively change users’ GIDs after group deletion.
id
getid
passwd
chage
usermod
command is used to change a given user’s real name?
-R
-n
-d
-c
-r
option. Which command should you also run to look for other files that might have been owned by the user?
find -id 1501
grep 1501 *
grep -u 1501 *
find / -uid 1501
127.0.0.1
192.168.1.100
ntp.example.com
pool.ntp.org
service postfix restart
newaliases
alias -n
postfix -e
/etc/cupsd
/etc/cups.d
/etc/CUPS
/etc/cups
/var/spool/qmail
/var/qmail/queue
/var/spool/mailq
/var/spool/qmail/queue
syslog
level is used to provide informational messages?
kern
emerg
debug
info
ntpd
ntpdate
ntpq
ntp-interactive
lpr
lpd
lpq
lpx
tcp/53
tcp/8080
udp/456
tcp/631
postqueue -f
postqueue -D
postfix -q
postsuper -q
syslog
for logging to a custom log file. Which facility should be used for an application such as this?
syslog
kern
local#
user
username
in the options) to the appropriate group for this purpose?
usermod -aG printerusers username
usermod -aG lpadmin username
usermod -gA lpadm username
usermod -a lpadm username
sendmail
?
mailq
mailstats
statmail
sendmailstats
systemd
?
systemctl restart cups.service
systemctl restart cups
systemctl reboot cups.target
systemctl restart cups.target
-a
-t
-e
-f
listuser
fuser
ls -u
w
usermod -e
, which of the following represents the correct date format?
YYYY-MM-DD
MM/DD/YYYY
DD/MM/YY
MM/DD/YY HH:MM:SS
httpd .service
, from starting on boot with a systemd
-based system?
systemctl disable httpdservice
systemctl stop httpd.service
systemd disable httpd.service
systemd enable httpd.service boot=no
/etc/shadow
, to what does the number 15853 refer? mail:*:15853:0:99999:7:::
config --merge
make oldconfig
merge config
int configs
udev
events in real-time?
udevls all
lsudev -f
udevmon -a
udevadm monitor
systemd
service configurations in order for those changes to take effect?
systemd reload
reboot
systemctl daemon-reload
systemctl reboot
rc
file?
/etc/runlevels
/etc/inittab
/etc/rc
/etc/runlevel
/etc/init.d
linked so that the files are executed during the various runlevels of a SysV system?
/etc/rc.S
/etc/rc
/etc/boot/rc
/etc/rc.d
automount
. Which of the following files is the default configuration file for the autofs
automounter?
/etc/autofs
/etc/auto.master
/etc/autofs.conf
/etc/automounter.conf
/dev/sd*
location where you have traditionally found such storage. In which location should you look for these drives?
/dev/nd*
/dev/nvme*
/dev/nv*
/dev/nvme/*
/sys/class/wwn
/sys/class/fc_host
/sys/class/fclist
/sys/class/fc/wwn
/dev/lvinfo
/dev/map
/dev/mapper
/dev/lvmap
wlan0
?
iw dev wlan0 link
wlan0 list
iw wlan0 -l
iw dev link
grep -i dhcp /var/log/syslog
grep -v dhcp /var/log/syslog
grep -vi dhcp /var/log/kern.log
dmesg | grep dhcp
dmesg
clears the contents of the kernel ring buffer after they have been read once?
-C
-c
-a
-e
rsync
command provides archive mode?
-r
-o
-a
-f
gcc
compiler, which of the following is the recommended name for a file containing commands and relationships used with the make
command?
Makefile
makefile
make.file
Makefile.txt
.gz
. Which of the following commands will uncompress the file?
unzip
gunzip
dezip
uncomp
make
, typically included in the makefile
for most projects, will place compiled files into their final destination and perform other operations such as making the appropriate files executable?
list
distclean
run
install
.repo
file in /etc/yum.repos.d/
is used to set the URL for the repository?
url
repourl
httpurl
baseurl
lsblk
command, there is no separate partition listed for /boot
. From which partition is the system likely booted?
/boot
directory under the /
partition./boot
partition is hidden./boot
partition./boot
partition does not show up with lsblk
.
grep -r "DB" *
grep -ri "DB" *
cat * | less
cat *.txt | grep DB
umount
in order to force the unmounting of the filesystem on the clients?
-nfs
--fake
-f
-n
STDIN
when using the mail
command?
<
>
<<<
|
whois
who
loggedin
curusers
named.conf
named.cfg
bind.cfg
bind.conf
/etc/ssl/example .com.private
?
openssl genrsa -out /etc/ssl/example.com.private
openssl generate-private > /etc/ssl/example.com.private
openssl genpriv > /etc/ssl/example.com.private
openssh genkey -out /etc/ssl/example.com.private
accesscontrol
acl
access-control
access-control-list
access_allow
http_access
proxy_access
enable_access
smbd
nmbd
winbindd
samba
PermitRootLogin
AllowRoot
RootLogin
PermitDirectRootLogin
192.168.5.0/24
?
client-route 192.168.5.0
push "route 192.168.5.0 255.255.255.0"
send "route 192.168.5.0/24"
client-route "192.168.5.0/24"
WAYLAND_DISPLAY
WAYLANDORG
WAYLAND_SESSION
WAYLAND_DISP
lsint
ls -interrupts
lsdev
ls-int
udevadm
command, you need to reload rules in order to add a new client device. Which option can be used to effect this change?
udevadm control -R
udevadm --stop
udevadm -stop-queue
udevadm -R
systemd
distribution of Linux. Which of the following commands can be used to restart the Apache server, assuming that it has a name of apache2
?
apache2.service restart
restart-daemon apache2
service apache2 restart
service restart apache2
DisplayPort
DisplayBase
ListenPort
ListenXPort
time
bootmsg
systemd-boot
systemd-analyze blame
-L
-R
-P
-E
wget
command logs output?
-r
-o
-b
-k
systemd
-enabled server, the service status
command is equivalent to which command?
systemd status
journald status
service-systemd status
systemctl status
dcat
tar
diff
dtool
<VirtualServer>
<VirtualHost>
<VirtContainer>
<Virtualization>
openssl
is used to create a Certificate Signing Request (CSR)?
req
csr
gencsr
newcsr
kill
command can be used to signal that BIND should reload, including its configuration?
-15
-1
-9
-2
STDOUT
should be appended?
<>
a>
>a
>>
shutdown
stop
norun
runstop
/var/spool/abrt
/var/spool/autobug
/var/tmp/abrt
/var/tmp/autobug
udevadm
to replay events?
replay
trigger
play
evplay
hostnamectl
can be used to set the type of machine on which it is running?
set-machine
machine-type
set-type
set-chassis
/etc/rcd
/etc/custom.service
/etc/rc.local
/etc/rc.d/rc.service
bind-config
named-config
rndc
rdmc
<display>
<video>
<videoDisplay>
display=
STDIN
until a certain character combination is encountered. Which of the following operators can be used for this purpose?
>STDIN
<<
<&
>
chkconfig
enables you to set the runlevels for a given service?
--level
--runlevel
-l
-rl
curl
command sets the local filename to which the output will be saved?
-f
-o
-O
-l
groupadd
addgrp
grpadd
creategroup
uid
myid
whoami
w
/etc/login
/etc/profile
/etc/bash.defs
/etc/profile.d
udev
can be found in which directory on a Debian system?
/etc/udev
/etc/rcS.d
/etc/rc5.d
/etc/rc5/udev
systemd
. Which is the correct command and order used to stop a service on this system?
systemctl <service> stop
systemctl stop <service>
systemd stop <service>
systemd <service> stop
Video
Display
Monitor
Disp
/dev/null
/dev/random
paste
command is used to set the delimiter?
-f
-d
-o
-m
service
command will cause a daemon to re-read its configuration files without restarting the daemon itself?
read
load
start
reload
systemd
, what is the name of the key used to create the variables?
ENV
Environment
Envvar
ENVPARAM
STDIN
, such as when redirecting input from a file?
>
<
^
*
udev
so that it has a specific and consistent name, you edit the udev
rules file. Which option within the rules file ensures that the device will always have a name of eth0
?
ATTR-NAME="eth0"
NAME="eth0"
DEV_NAME="eth0"
NAME_DEV="eth0"
xorg.conf
?
/etc/xorg
/etc/x
/etc/Xorg
/etc/X11
alsaconfig
alsacfg
alsamixer
amix
ordp
xrdp
tdpx
xr
dmesg | grep -i vga
vgadetect
lsvid
lsvga
SSLKeyFile
SSLCertificatePrivateKey
SSLCertificateKeyFile
SSLPrivateKey
ifconfig
iwconfig
wlancfg
iconf
du
touc
conv
tr
nc
systemd
system. Which systemctl
command should be used for this purpose?
disable
delete
mask
norun
more
pg
grep
mr
STDOUT
and STDERR
?
&>
>
~
!
/dev/termcur
/dev/tdev
/dev/tty
/dev/curproc
printf
echo
print
here
remove
rmfile
unlink
rem
scp
ncftp
go
xfer
run
cont
nohup
runproc
bluetooth -d
bludetect
lsblue
lsusb | grep -i bluetooth