Linux+ Part 2 Exam C
Which of the following symbols in the beginning of the first line in a shell script specifies the shell used to run the script?
#!
Which of the following passwd parameters is used to remove the password from an account?
-d
Which of the following parameters is used to specify the input file with the at command?
-f
Which of the following useradd parameters is used to set the number of days between password expiry and account disabling?
-f
Which of the following logger options is used to record the process ID of the logger process?
-i
Which of the following chage parameters is used to display information about account aging?
-l
Which of the following userdel parameters, if passed, deletes files in the user home directory along with the user account?
-r
Which of the following ln parameters is used to create a symbolic link?
-s
Which of the following directories contains the configuration files used to manage Common Unix Printing System (CUPS)?
/etc/cups
Which of the following configuration files is used to store shadow password information about groups?
/etc/gshadow
Which of the following shell configuration files is launched only by a login process and affects all users of a shell upon modification?
/etc/profile
Which of the following files is configured for mapping port numbers with names to link servers to correct ports?
/etc/services
Which of the following contains the default configuration files copied to every new user's home directory?
/etc/skel
Which of the following files is used to configure the OpenSSH server?
/etc/ssh/sshd_config
Which of the following files contains information about the location of users in text format?
/etc/timezone
Which of the following variables overrides other LC_* variables when set?
LC_ALL
Which of the following AccessX features causes the keyboard modifier keys to remain active when pressed once, even after releasing the key?
Sticky keys
Which of the following options, when enabled, allows remote users to run GUI programs via SSH?
X11Forwarding
Which of the following commands can be used to set the minimum or maximum number of days between password changes?
chage
Which of the following can be used to schedule a task to run daily at a specific time?
crontab
Which of the following commands is used to perform complex DNS lookups?
dig
Which of the following is prefixed with an account's hashed password to lock that account?
exclamation (!)
Which of the following commands runs a script without creating a subshell and exits the current shell after execution by default?
exec
Which of the following commands is used to make an environment variable available to subshells?
export
Which keyword can be used within a script to create a module that performs a specific subtask?
function
Which of the following commands is used to determine the users currently accessing a specific network port?
fuser
Which of the following commands can be used to retrieve records from databases configured in the NSS (Name Service Switch) file?
getent
Which of the following commands adds a password to a group to allow users, not a member of the group, to join the group temporarily?
gpasswd
Which of the following commands is used to set the CMOS clock?
hwclock
Which of the following is used to change the encoding of files from one format to another?
iconv
Which of the following commands is not used to initiate a loop?
if
Which of the following commands is used to view or assign an IP address to a network interface?
ifconfig
Which of the following starts an XDMCP server?
init
Which of the following commands is used to synchronize the time between all the NTP clients and the NTP server?
ntpdate
Which of the following users in Linux has a UID of '0'?
root
Which of the following commands is used to print a list of numbers within a specified range?
seq
Which of the following commands is used to display all user-defined variables in a sorted list?
set
Which of the following commands can be used to run a single command as root without logging in as the superuser?
sudo
Which of the following commands is used to compare values or evaluate expressions?
test
Which of the following commands are used to determine the route to a specified IP address?
traceroute tracepath
Which of the following commands can be used to set restrictions on the size of core dumps and files created by the shell?
ulimit
Which of the following commands is used to remove a user's details from the /etc/passwd file?
userdel
Which of the following commands is used to change the user login name?
usermod
Which of the following files is the X.org-X11 server's configuration file?
xorg.conf
Which command is used to obtain detailed information about any window in X window system?
xwininfo
Which of the following files can be edited to redirect all of a user's mail to another mail address?
~/.forward
Which of the following is an on-screen keyboard utility in Linux?
GOK
Which of the following protocols is used by network devices to send only error messages whenever a requested service is not available?
ICMP
Which of the following AccessX features enables the cursor keypad to be emulated as a pointing device?
Mouse keys
Which of the following protocols synchronizes clock between computers on a network?
NTP
Which of the following environment variables contains the details about the current directory the user is working in?
PWD
Which of the following commands is used to assign new names to regular commands?
alias
Which of the following options tells xinetd to listen on specified network interface?
bind
Which of the following commands can be used to retrieve all login and logout data of currently as well as previously logged users?
last
Which of the following commands is used to rename, compress, and delete system log files?
logrotate
Which of the following commands is used to display information about all the queued print jobs?
lpq
Which of the following CUPS utilities can be used to send a file to the print queue for printing?
lpr
Which of the following syslog facility parameters specifies that a printing program is logging the message?
lpr
Which of the following commands is used to list all the open files and the user accessing those files?
lsof
Which of the following can be used to display the contents of an email queue?
mailq