UNIX/Linux Final CSIA 430
True
You can lock a user account by changing the default login shell to an invalid shell in /etc/passwd. True or False?
.Z
Files that have been compressed using the compress utility typically have the extension. a. .tar.gz b. .gz c. .Z d. .bz2
ps
Which command entered without arguments is used to display a list of processes running in the current shell? a. ppid b. list c. pid d. ps
ldd
Which command indicates the shared libraries required by a certain executable program? a. ldconfig b. ldd c. rpm -V d. slconfig
/etc/login.defs
Which file contains default information such as UID and GID ranges and minimum password length to be used at user creation? a. /etc/skel b. /etc/passwd c. /etc/login.defs d. /etc/default/useradd
/etc/sudoers
Which file contains information regarding the users, computers, and commands used by the sudo command? a. /etc/sudo b. /etc/su.cfg c. /etc/sudo.cfg d. /etc/sudoers
forking
A process spawning or initiating another process is referred to as . a. a child process b. forking c. branching d. parenting
is a rogue process
A runaway process that is faulty and consuming mass amounts of system resources . a. is a zombie process b. is an orphaned process c. has a PPID of Z d. is a rogue process
True
A subnet mask is used to differentiate the host portion from the network portion in a TCP/IP address. True or False?
True
Chronyd is an NTP daemon that offers a faster response time compared to the ntpd daemon. True or False?
port
The daemons associated with network services listen for network traffic associated with a particular . a. station b. port c. TCP/IP address d. allocation number
True
The private key is used when creating a digital signature. True or False?
printing
The process of sending print jobs from the print queue to the printer is called . a. spooling b. queuing c. redirecting d. printing
False
To install a new program from RPM software repositories on the Internet, you can use the yum update programname command. True or False?
/etc/dumpdates
To install a new program from RPM software repositories on the Internet, you can use the yum update programname command. True or False? False 14. Which file contains full and incremental back-up information for use with the dump/ restore utility? a. /etc/dumps b. /etc/dumpdates c. /etc/dumpfile d. /etc/dump.conf
False
To kill a process running in the background, you must place a % character before its process ID. True or False?
nslookup hostname dig hostname host hostname
To test DNS configuration by resolving a host name to an IP address, which command or commands can you use? (Choose all that apply.) a. nslookup hostname b. dig hostname c. host hostname d. resolve hostname
journalctl
What command can you use to view journald log entries on a system that uses Systemd? a. less b. journalctl c. syslog d. catlog
crontab
What command is used to view and modify user jobs scheduled to run with cron? a. crontab b. cron c. ps d. sched
routers
What devices are used to transfer information from one network to another? a. routers b. LANs c. DNS servers d. DHCP servers
/srv/ftp
What directory are you placed in when you log in as the anonymous user to an Ubuntu Server 14.04 FTP server? a. /srv/ftp b. /var/www/ftp c. /home/anonymous d. /var/ftp/pub
daemon process
What is the name given to a process not associated with a terminal? a. child process b. parent process c. user process d. daemon process
/etc/rc2.d
What is the name of the directory that contains symbolic links to UNIX SysV rc scripts for runlevel 2? a. /etc/rc2.d b. /etc/init.d/rc2.d c. /etc/runlevel/2 d. /etc/inittab/rc2/d
/etc/passwd
What is the name of the file that contains a listing of all users on the system and their home directories? a. /etc/passwd b. /etc/users c. /etc/shadow d. /etc/password
newgrp
Which command can be used to alter the primary group associated with a given user temporarily? a. usermod b. chggrp c. gpasswd d. newgrp
smbclient //fileserver/data
Which command can be used to connect to a remote Windows share called data on the server called fileserver? a. smbclient -L fileserver:data b. smbclient -L //fileserver/data c. smbclient //fileserver/data d. smbclient \\fileserver\data
testparm
Which command can be used to connect to check the /etc/samba/smb.conf file for syn-tax errors? a. apachectl b. sambactl c. testparm d. psql
free sar vmstat
Which of the following commands can be used to display memory statistics? (Choose all that apply.) a. free b. sar c. vmstat d. iostat
23
Which of the following port numbers is associated with telnet? a.20 b.137 c.49 d.23
ntpq
Which command can you use to synchronize ntpd with an NTP time source? a. ntp b. ntpquery c. ntpq d. hwclock
parent process ID
Every process has a process ID and a . a. fork process b. daemon c. child process d. parent process ID
/etc/resolv.conf
Which file stores the TCP/IP addresses of the DNS servers used to resolve host names if no DNS servers are specified within the network configuration file for the NIC? a. /etc/hosts b. /etc/host.conf c. /etc/resolve d. /etc/resolv.conf
/etc/sysconfig/network-scripts/ifcfg-eth0
Which file would you modify to permanently change the TCP/IP address of the first wired NIC on a Fedora 20 system? a. /etc/sysconfig/network-scripts/ifcfg-eth1 b. /etc/sysconfig/network-scripts/ifcfg-eth0 c. /etc/sysconfig/network-scripts/ipcfg-eth0 d. /etc/sysconfig/network-scripts/ipcfg-eth1
.tar.gz
Which filename extension indicates a tarball? a. .tar.gz b. .cpio c. .dump d. .tar
AIDE tripwire
Which of the following Linux Intrusion Detection Systems can be used to detect altered files and directories? (Choose all that apply.) a. AIDE b. SWATCH c. tripwire d. Snort
systemctl stop lala.service
Which of the following Systemd commands can be used to stop a daemon called lala? a. service stop lala b. systemctl stop lala.service c. chkconfig stop lala d. stop lala
Ensure that only necessary services are running.
Which of the following actions should you first take to secure your Linux computer against network attacks? a. Change permissions on key system files. b. Ensure that only necessary services are running. c. Run a checksum for each file used by network services. d. Configure entries in the /etc/sudoers file.
mouse keys high contrast sticky keys on-screen keyboard
Which of the following are common assistive technologies? (Choose all that apply.) a. mouse keys b. high contrast c. sticky keys d. on-screen keyboard
ssh -X VNC
Which of the following are graphical remote administration technologies? (Choose all that apply.) a. telnet b. ssh -X c. ssh d. VNC
Apache (httpd) DNS (named)
Which of the following are stand-alone daemons? (Choose all that apply.) a. Apache (httpd) b. Washington University FTP (in.ftpd) c. telnet (in.telnetd) d. DNS (named)
the CREATE DATABASE statement within the PostgreSQL utility. the createdb command.
Which of the following can be used to create a database within PostgreSQL? (Choose all that apply.) a. the CREATE DATABASE statement within the PostgreSQL utility. b. the ADD DATABASE statement within the PostgreSQL utility. c. the adddb command. d. the createdb command.
apt-get purge test
Which of the following command can be used to remove the test DPM package, includ-ing any test configuration files? a. dpkg remove test b. apt-get remove test c. dpkg purge test d. apt-get purge test
rpm -ql packagename
Which of the following commands can be used to list the files contained within an installed RPM package? a. rpm -qa packagename b. rpm -qi packagename c. rpm -ql packagename d. rpm -q packagename
nmap
Which of the following commands can be used to scan the available ports on computers within your organization? a. traceroute b. tracert c. nmap d. sudo
yum search oobla
Which of the following commands can be used to search for packages that contain the word "oobla" on RPM software repositories? a. yum search oobla b. rpm -qS oobla c. yum list oobla d. rpm -ql oobla
chkconfig --level 123 lala on
Which of the following commands can be used to start a UNIX SysV daemon called lala in runlevels 1, 2, and 3? a. chkconfig --level 123 lala on b. update-rc.d lala defaults c. systemctl enable lala 123 d. service enable lala 123
tar -zcvf /dev/st0 *
Which of the following commands creates an archive? a. tar -cvf /dev/st0 b. tar -xvf /dev/st0 c. tar -tvf /dev/st0 d. tar -zcvf /dev/st0 *
cpio -vicdu -I /dev/fd0
Which of the following commands extracts an archive? a. cpio -vocBL /dev/fd0 b. cpio -vicdu -I /dev/fd0 c. cpio -vicdu -O /dev/fd0 d. cpio -vti -I /dev/fd0
renice -12
Which of the following commands will most likely increase the chance of a process receiving more time slices? a. renice 0 b. renice 15 c. renice -12 d. renice 19
sa19
Which of the following files is likely to be found in the /var/log/sa directory on a Fedora 20 system over time? a. 15 b. sa39 c. sa19 d. 00
firewall-cmd --add-service ssh --permanent
Which of the following firewalld commands can be used to allow incoming SSH con-nections the next time the system is booted? a. firewall-cmd --add-service ssh b. firewall-cmd --add-port 22/tcp c. firewall-cmd --add-port 22/udp d. firewall-cmd --add-service ssh --permanent
(hd2,1)
Which of the following indicates the second partition on the third hard disk drive to GRUB? a. (hd3,2) b. (hd4,3) c. (hd2,3) d. (hd2,1)
Edit the /etc/exports file. Run the exportfs -a command. Start or restart the NFS daemons
Which of the following must you perform to share a directory using NFS? (Choose all that apply.) a. Edit the /etc/exports file. b. Mount the directory to the /etc/exports directory using the mount command. c. Run the exportfs -a command. d. Start or restart the NFS daemons.
/dev/nst0
Which of the following represents the first nonrewinding SCSI tape device on a system? a. /dev/st0 b. /dev/ht0 c. /dev/nht0 d. /dev/nst0
LILO needs to be reinstalled after it has been modified.
Which of the following statements is true? a. The GRUB boot loader is stored in the /usr/grub directory. b. LILO needs to be reinstalled after it has been modified. c. The GRUB2 boot loader is often used on legacy Linux systems. d. GRUB needs to be reinstalled after it has been modified.
Either the MBR/GPT or the active partition can contain the boot loader
Which of the following statements is true? a. The boot loader points to the MBR/GPT. b. Either the MBR/GPT or the active partition can contain the boot loader. c. Both the MBR/GPT and the active partition point to the boot loader. d. The boot loader points to the active partition.
If /etc/at.allow exists, only users listed in it can use the at command. If /etc/cron.allow exists, only users listed in it can use the cron command. If /etc/cron.deny exists and /etc/cron.allow does not exist, any user not listed in /etc/cron.deny can use the cron command.
Which of the following statements is true? (Choose all that apply.) a. If /etc/at.allow exists, only users listed in it can use the at command. b. If /etc/cron.allow exists, only users listed in it can use the cron command. c. If /etc/cron.deny exists and /etc/cron.allow does not exist, any user not listed in /etc/cron.deny can use the cron command. d. If /etc/cron.allow and /etc/cron.deny exist, only users listed in the former can use the cron command, and any users listed in the latter are denied access to the cron command. e. If a user is listed in both /etc/cron.allow and /etc/cron.deny, then /etc/cron.deny takes precedence and the user cannot access the crontab command.
Delegate responsibility
Which of the following steps is not a common troubleshooting procedure? a. Test the solution. b. Isolate the problem. c. Delegate responsibility. d. Collect information.
ifconfig ping netstat -i
Which of the following utilities can be used to check TCP/IP configuration and test net-work connectivity? (Choose all that apply.) a. ifconfig b. ipconfig c. ping d. netstat -i
-L
Which option to the dpkg command can be used to list the files that comprise a package? a. -l b. -L c. -s d. -i
e
Which option to the rpm command can be used to remove a package from the system? a. r b. e c. u d. U
init
Which process will always have a PID of 1 and a PPID of 0? a. the kernel itself b. ps c. init d. top
0
Which runlevel halts the system? a.1 b.6 c.0 d.5
route ip
Which two commands can be used to modify the route table on a Linux computer? (Choose two answers.) a. route b. ipconfig c. ip d. traceroute
X.org XFree86
Which two implementations of X Windows are commonly used in Linux? (Choose two answers.) a. X.org b. XFce c. Xconfigurator d. XFree86
True
You can clear a log file simply by redirecting nothing into it. True or False?
0,1,2,3,4
You have created a full backup and four incremental backups. In which order must you restore these backups? a.0,1,2,3, 4 b.0,4,3,2, 1 c.4,3,2,1, 0 d.1,2,3,4, 0
Run the newaliases command.
You have modified the /etc/aliases file to include a new e-mail alias. However, when you send e-mail to the alias, it can not be delivered. What should you do? a. Add the line to the /etc/aliases.db file instead. b. Run the newaliases command. c. Restart the Postfix daemon. d. Log out of the system and then log back into the system and resend the e-mail.
False
RSA is a common symmetric encryption algorithm used by SSH and GPG. True or False?
seconds
The timeout value in the GRUB configuration file is measured in? a. seconds b. 1/10 of minutes c. 1/10 of seconds d. 1/100 of seconds
Create zone files. Create NIS maps. Run the name daemon (named).
What must you do to transform your computer into a DNS server? (Choose all that apply.) a. Create zone files. b. Create resource records for DNS lookups. c. Create NIS maps. d. Run the name daemon (named).
INPUT
What type of iptables chain targets traffic that is destined for the local computer? a. INPUT b. ROUTE c. FORWARD d. OUTPUT
Take 50 swap statistics every 3 seconds.
What will the command sar -W 3 50 do ? a. Take 3 swap statistics every 50 seconds. b. Take 50 swap statistics every 3 seconds. c. Take 3 CPU statistics every 50 seconds. d. Take 50 CPU statistics every 3 seconds.
xvidtune
Which command can be used to fine-tune the vsync and hsync of a video card for use in X Windows? a. vidtune b. synctune c. xvidtune d. vhtune
jobs
Which command can be used to see processes running in the background? a. bg b. jobs c. ps -% d. fg
lp -d Printer1 file lp file
Which command can be used to send a print job to the default printer named Printer1? (Choose all that apply.) a. lp -d Printer1 file b. lp Printer1 file c. lp file d. lp -m Printer1 file
startx
Which command can be used to start X Windows, the window manager, and the default desktop environment? a. startgui b. startgdm c. startx d. gstart
ulimit
Which command can increase the number of file handles that programs can open in a shell? a. ldd b. ulimit c. lba32 d. top
usermod -L username
Which command can you use to lock a user account? a. lock username b. secure username c. usermod -L username d. useradd -L username
init 1
Which command causes the system to enter Single User Mode? a. init 0 b. init 1 c. init 6 d. initstate 5
userdel username
Which command is used to delete a user account? a. usermod -d username b. del username c. userdel username d. rm username
top
Which command is used to gain real-time information about processes running on the system, with the most processor-intensive processes appearing at the beginning of the list? a. ps b. ps -elf c. top d. top -l
lcd
Which command within the command-line FTP utility can be used to change the current directory on the local computer? a. cd b. dir c. lcd d. get
ifup eth0
Which command would be used to activate the NIC aliased as eth0? a. ifup b. ifup eth0 c. ipup eth0 d. ifdown eth0
usermod -U username
Which command would you use to unlock a user account? a. unlock username b. open username c. usermod -U username d. useradd -U username
/etc/init.d
Which directory stores most UNIX SysV rc scripts? a. /etc/rc5.d b. /etc/rc.d c. /etc/init.d d. /usr/local/system
0
Which dump level indicates a full backup? a.0 b.9 c.1 d.f
/etc/inittab
Which file does the UNIX SysV init daemon reference on startup to determine the default runlevel? a. /etc/initstate b. /inittab c. /etc/init d. /etc/inittab
/etc/nsswitch.conf
Which file holds the methods to be used and the order in which they will be applied for host name resolution? a. /etc/nsswitch.conf b. /etc/resolve.conf c. /etc/hosts d. /etc/dns.conf
/etc/httpd/conf/httpd.conf
Which file stores the Apache configuration in Fedora 20? a. /etc/apache2/httpd.conf b. /etc/apache2.conf c. /etc/httpd.conf d. /etc/httpd/conf/httpd.conf
False
UIDs and GIDs are unique to the system and, once used, can never be reused. True or False?
graphical.target
What Systemd target corresponds to runlevel 5? a. multi-user.target b. graphical.target c. system.target d. runlevel5.target
Lock the server in a server closet. Ensure that SELinux or AppArmor is used to protect key services.
What are best practices for securing a Linux server? (Choose all that apply.) a. Lock the server in a server closet. b. Ensure that you are logged in as the root user to the server at all times. c. Ensure that SELinux or AppArmor is used to protect key services. d. Set the default run level to 1 (Single User Mode).
DNS /etc/hosts
What are two means available to resolve a host name to the appropriate TCP/IP address? (Choose two answers.) a. DHCP b. DNS c. /etc/hosts d. /etc/resolve.conf
logrotate
What is the name of the utility used to rotate log files? a. syslog b. jetpack c. logrotate d. logbackup
authentication
What is the name used to describe a user providing a user name and password to log in to a system? a. validation b. authorization c. login d. authentication
init
What keyword can be specified within a boot loader to force the system to boot to Sin- gle User Mode? a. init b. rescue c. single d. telinit
9
What kill level signal cannot be trapped? a.1 b.9 c.3 d.15
monitoring
On which part of the maintenance cycle do Linux administrators spend the most time? a. monitoring b. proactive maintenance c. reactive maintenance d. documentation
False
Along with a listing of user accounts, the /etc/passwd file contains information on account expiry. True or False?
True
As daemon processes are not associated with terminals, you must use the -e switch with the ps command to view them. True or False?
default gateway
Before a computer can use a router, with what configuration information must it be provided? a. routing table b. subnet mask c. default gateway d. default router
True
DHCP clients send a DHCPREQUEST packet when they require a new IP configuration. True or False?
You can use the Ctrlþz key combination and the bg command.
How can you bypass the wait function and send a user process to the background? a. This cannot happen once a process is executing; it can be done only when the com- mand is started by placing an ampersand (&) after it. b. This cannot happen; only daemon processes can run in the background. c. You can use the ps command. d. You can use the Ctrlþz key combination and the bg command.
/boot
In what directory is Stage2 of the GRUB2 boot loader stored? a. /boot b. /root c. /bin d. /
Restart the DHCP daemon
Mary is a system administrator in your organization. She has recently made changes to the DHCP configuration file, but the DHCP daemon does not seem to recognize the new changes. What should she do? a. Log in as the root user and reedit the configuration file. b. Run the dhcpconf command to edit the configuration file. c. Restart the DHCP daemon. d. Restart the xinetd daemon.
True
SSH encrypts all traffic that passes across the network, whereas telnet does not. True or False?
False
Stand-alone daemons are started on demand using inetd or xinetd. True or False?
False
Stratum 1 NTP servers do not obtain time information from other NTP servers. True or False?
True
The -9 option to the gzip command results in a higher compression ratio. True or False?
False
The Debian Package Manager (DPM) is the default package manager used by Fedora 20. True or False?
loopback address
The TCP/IP address of 127.0.0.1 is also referred to as the . a. local address b. lookup address c. local host d. loopback address
schedule processes to run at a single instance in the future
The at command is used to . a. schedule processes to run periodically in the background b. schedule processes to run periodically on a recurring basis in the future c. schedule processes to run at a single instance in the future d. schedule processes to run in the foreground
False
The bzip2 and gzip utilities use similar compression algorithms. True or False?
HELO EHLO
You have opened a telnet session on port 25 with your e-mail server. What command can you type within your telnet session to start an e-mail session? (Choose all that apply.) a. START b. HELO c. EHLO d. WAZUP
grub2-mkconfig
You have recently modified the options within the /etc/default/grub file. What command can you use next to rebuild the GRUB2 configuration file? a. grub2-install b. grub-install c. grubby d. grub2-mkconfig
cancel Printer1-17 Printer1-21
You use lpstat and determine that a user named User1 has placed two large print jobs in the queue for Printer1 that have yet to start printing. They have print job IDs of Printer1-17 and Printer1-21, respectively. Which command would you use to remove these two jobs from the print queue? a. cancel Printer1-17 Printer1-21 b. cancel -u Printer1-17 Printer1-21 c. cancel -a Printer1-17 Printer1-21 d. cancel 17 21
Modify the daemon configuration file within the /etc/init directory.
You wish to configure the runlevels that a particular upstart daemon is started in. What should you do? a. Run the appropriate update-rc.d command. b. Modify the contents of the /etc/rc[runlevel].d directories. c. Modify the daemon configuration file within the /etc/init directory. d. Run the appropriate systemctl command
False
The lspci command can be used to isolate problems with X Windows. True or False?
/var/log
Most log files on the system are found in which directory? a. /etc/logfiles b. /etc/log c. /var/log d. /dev/log
True
Most source code is available on the Internet in tarball format. True or False?
False
NFS can be used to share files natively with computers running the Microsoft Windows operating system. True or False?
False
NIS clients use NIS records to access their configuration information. True or False?
-20 and 19
Nice values are used to affect process priorities using a range between . a. 0 and 20 b. 0 and −19 c. −19 and 20 d. −20 and 19
init
The first daemon loaded on a Linux system is. a. initstate b. inittab c. init d. linux
all instances of a process with the same name
The killall command terminates . a. all instances of a process with the same PPID b. all instances of a process with the same PID c. all instances of a process with the same priority d. all instances of a process with the same name
False
The line that configures the host name for the computer at boot time can be found in / etc/hostname. True or False?
True
The lines within the Apache configuration file that modify the functionality of the Apache are called directives. True or False?
the print queue accepts jobs into the print queue and holds them there until the printer is enabled again
When a printer is disabled, . a. the print queue does not accept jobs and sends a message to the user noting that the printer is unavailable b. the print queue accepts jobs into the print queue and holds them there until the printer is enabled again c. the printer appears as off-line when an lp request is sent d. the print queue redirects all print jobs sent to it to /dev/null
the print queue does not accept jobs and sends a message to the user noting that the printer is unavailable
When a printer is rejecting requests, . a. the print queue does not accept jobs and sends a message to the user noting that the printer is unavailable b. the print queue accepts jobs into the print queue and holds them there until the printer is accepting requests again c. the printer appears as off-line when a lp request is sent d. the print queue redirects all print jobs sent to it to /dev/null
make
When compiling source code into a binary program, which command does the compil-ing using the GNU C Compiler? a. tar b. ./configure c. make d. make install
./configure
When compiling source code into a binary program, which command performs a system check and creates the Makefile? a. tar b. ./configure c. make d. make install
bad, because the processor is idle 10 percent of the time and perhaps a faster CPU is required
When performing a sar -u command, you notice that %idle is consistently 10 percent. Is this good or bad? a. good, because the processor should be idle more than 5 percent of the time b. good, because the processor is idle 90 percent of the time c. bad, because the processor is idle 10 percent of the time and perhaps a faster CPU is required d. bad, because the processor is idle 10 percent of the time and perhaps a new hard disk is required
facility, priority
When referring to the /etc/rsyslog.conf file, specifies information from a certain area of the system, whereas is the level of importance of that information. a. section, priority b. service, precedents c. process, degree d. facility, priority
False
When the fsck command cannot repair a nonroot filesystem, you should immediately restore all data from tape backup. True or False?
There is a question mark in the TTY column
When you run the ps command, how are daemon processes recognized? a. The terminal is listed as tty0. b. There is a question mark in the TTY column. c. There is an asterisk in the STIME column. d. There is a "d" for daemon in the terminal identification column.
/var/spool/cron/(the user's login name)
Where are individual user tasks scheduled to run with the cron daemon stored on a Fedora system? a. /etc/crontab b. /etc/cron/(the user's login name) c. /var/spool/cron d. /var/spool/cron/(the user's login name)
CNAME
Which DNS resource record is an alias to other records? a. A b. AAAA c. CNAME d. NS
DELETE
Which SQL statement key word can be used to delete a record within a table? a. DELETE b. DROP c. REMOVE d. CLEAR
Putty
Which Windows program is often used to connect to a Linux server via SSH? a. SSHD b. Putty c. Rdesktop d. mstsc