What section of the online user's manual and command reference holds administrative (not user) commands? Select one.
Section 1
Section 2
Section 8
Section n
Section s
In the bash shell, entering the !! command has the same effect as which one of the following?
Ctrl-P and Enter
Ctrl-N and Enter
Ctrl-U and Enter
!-2
!2
Name the command that displays pages from the online user's manual and command reference.
Which of the following commands displays the comments from a bash script? Select all that apply.
find "^#" /etc/rc.d/rc.local
sed '/^#/ !d' /etc/rc.d/init.d/httpd
grep ^# /etc/rc.d/init.d/httpd
grep ^# /etc/passwd
locate "^#" /etc/skel/.bashrc
Which one of the following answers creates an environment variable VAR1
, present in the environment of a bash child process?
VAR1="fail" ; export VAR1
VAR1="fail" export VAR1
VAR1="fail"
set VAR1="fail" ; enable VAR1
export VAR1 VAR1="fail"
Name the full path and name of the file that holds most of the information on system user groups.
Which one of the following outcomes results from the following command?
# chmod g+s /home/software
The SUID bit will be set for /home/software.
The SGID bit will be set for /home/software, preventing access by those not a member of the software group.
The SGID bit will be set for /home/software, to keep group membership of the directory consistent for all files created.
The sticky bit will be set for /home/software.
The sticky bit will be applied to all files in /home/software.
Consider the following script, stored in a file with proper modes for execution:
#!/bin/bash for $v1 in a1 a2 do echo $v1 done
Which one of the following best represents the output produced on a terminal by this script?
in
a1
a2
a1
a2
$v1
$v1
$v1
No output is produced, but the script executes correctly.
No output is produced, because the script has an error.
Which one of the following commands verbosely extracts files from a tar archive on a magnetic tape device?
tar cvf /dev/st0
tar cvf /dev/ttyS0
tar xvf /dev/st0
tar xvf /dev/ttyS0
tar rvf /dev/st0
Alex wants to protect himself from inadvertently overwriting files when copying them, so he wants to alias cp to prevent overwrite. How should he go about this? Select one.
Put alias cp='cp -i'
in ~/.bashrc.
Put alias cp='cp -i'
in ~/.bash_profile.
Put alias cp='cp -p'
in ~/.bashrc.
Put alias cp='cp -p'
in ~/.bash_profile.
Put alias cp = 'cp -I'
in ~/.bashrc.
Monica consults the /etc/passwd file expecting to find encrypted passwords for all of the users on her system. She sees the following:
jdoe:x:500:500::/home/jdoe:/bin/bash bsmith:x:501:501::/home/bsmith:/bin/tcsh
Which of the following is true? Select one.
Accounts jdoe and bsmith have no passwords.
Accounts jdoe and bsmith are disabled.
The passwords are in /etc/passwd-.
The passwords are in /etc/shadow.
The passwords are in /etc/shadow-.
What variable holds the list of directories searched by the shell to find executable programs?
Where does The Linux System Administrators' Guide originate? Select one.
Red Hat Software, Inc.
O'Reilly Media, Inc.
The Free Software Foundation
The Linux Documentation Project
Usenet newsgroup comp.os.linux
Which one of these files determines how messages are stored using syslogd?
/etc/sysconfig/logger.conf
/etc/syslog.conf
/etc/syslogd.conf
/etc/conf.syslog
/etc/conf.syslogd
How many hosts can exist on a subnet with mask 255.255.255.128? Select one.
512
256
128
127
126
When running a text-mode FTP client, which command retrieves multiple files? Select one.
get *.txt
retrieve *.txt
mget *.txt
mretrieve *.txt
get -m *.txt
For an Internet workstation with a single network interface, what routes must be added to interface eth0 after it is initialized? Select one.
None
Interface
Interface and default gateway
Interface, local network, and default gateway
On a Linux server, what service is most likely "listening" on port 25? Select one.
Apache
News
Sendmail
Samba
FTP
Which one of these protocols is used as a datagram delivery service by the remaining three? Select one.
TCP
IP
UDP
ICMP
Which command will display information about Ethernet interface eth0? Select one.
cat /proc/eth/0
ifconfig eth0
ipconfig eth0
ipconfig /dev/eth0
cat /etc/eth0.conf
When is the PPP interface ppp0 created? Select one.
At boot time by the kernel
At installation time by mknod
At dial-up time by the chatscript
At dial-up time by pppd
When the modem powers up
What program is run on a client machine to request an IP address from a DHCP server? Select one.
dhcpd
inetd
pump
dhcp_client
bootp
What does the printcap entry sd
indicate? Select one.
The system default printer
A printer's spool directory
A device file for the printer
A location where errors are stored
The printer driver
Where is TCP wrappers configured and where is it enabled?
Configured in tcpd.conf, enabled in tcpd.conf
Configured in inetd.conf, enabled in inetd.conf
Configured in hosts.deny and hosts.allow, enabled in inetd.conf
Configured in inetd.conf, enabled in hosts.deny and hosts.allow
Which of the following is a valid entry in /etc/fstab for a remote NFS mount from server fs1? Select one.
fs1:/proc /mnt/fs1 nfs defaults 9 9
/mnt/fs1 fs1:/proc nfs defaults 0 0
fs1:/home /mnt/fs1 nfs defaults 0 0
/mnt/fs1 fs1:/home nfs defaults 0 0
/home:fs1 /mnt/fs1 nfs defaults 0 0
Which network protocol is used by Telnet and FTP? Select one.
ICMP
UDP
TCP
DHCP
PPP
Which of the following programs will display DNS information for a host? Choose all that apply.
host
nslookup
nsstat
dig
ping
Consider the following entry in /etc/exports:
/home pickle(rw,no_root_squash)
How is this entry handled by the NFS daemon? Select one.
Directory /home is shared to everyone, without requiring passwords.
Directory /home is shared to everyone, requiring passwords.
Directory pickle is mounted on /home.
Root is not allowed access to the shared directory.
The mount attempt will fail.
From the user's point of view, which answer describes the appearance of an NFS mounted directory? Select one.
A new device in /dev.
A new local volume accessed using a volume letter, such as D:
.
A new local volume accessed using the NFS server's name.
Part of the local filesystem, accessed using ordinary pathnames.
Part of the NFS server's filesystem, accessed using the NFS server's name.
Which of the following statements regarding the ICMP protocol is not true? Select one.
ICMP is connectionless.
ICMP provides network flow control.
ICMP is also known as UDP.
ICMP is used by ping.
What is CHAP? Select one.
The PPP chat script.
An authentication protocol using clear text.
An authentication protocol embedded in the PPP data stream.
The pppd configuration utility.
A modem communications protocol.
What server daemon resolves domain names to IP addresses for requesting hosts?
During the two-way communication that takes place during a chat script used to start PPP, what is chat
communicating with? Select one.
The pppd daemon
The PPP server
The kernel
The modem
The syslogd daemon
What function does a print filter serve? Select one.
It collates output from multiple users.
It translates various data formats into a page description language.
It rejects print requests from unauthorized users.
It rejects print requests from unauthorized hosts.
It analyzes print data and directs print requests to the appropriate lpd
.
Consider the following excerpt from file /etc/resolv.conf of a Linux workstation:
nameserver 127.0.0.1 nameserver 192.168.1.5 nameserver 192.168.250.2
What can be said about this configuration? Select one.
Two DNS servers on the public network are being used for resolution.
One DNS server on the local network is being used for resolution.
The configuration contains errors that will prevent the resolver from functioning.
A caching-only name server is running.
The resolver library will consult nameserver 192.168.250.2
first.
Which of the following is true regarding BIND v4 and BIND v8 configuration files? Select one.
The information is largely the same, but the syntax is different.
The syntax is largely the same, but the information is different.
The two BIND versions use the same configuration file.
BIND v4 uses a binary configuration file instead of text.
BIND v8 uses a binary configuration file instead of text.
What file is used to configure Sendmail? Include the entire path.
Name the file that contains simple mappings between IP addresses and system names.
What is the meaning and location of the following kernel configuration file excerpt? Select one.
options opl3 io=0x388
Kernel option opl3
is set to use I/O port 0x388; /usr/src/linux/.config.
Kernel module option opl3
is set to use I/O port 0x388
; /usr/src/linux/.config.
Kernel module opl3
is set to use I/O port 0x388
; /usr/src/linux/.config.
Kernel option opl3
is set to use I/O port 0x388
; /usr/src/linux/.config.
Kernel module opl3
is set to use I/O port 0x388
; /etc/conf.modules or /etc/modules.conf.
What program can be used to interactively change the behavior of a print queue? Select one.
lpd
lpr
lpq
lprm
lpc
Which of the following represents a valid sequence of commands to compile and install a new kernel? Select one.
make modules_install; make modules; make bzImage; make clean; make dep
make dep; make clean; make bzImage; make config; make modules; make modules_install
make config; make dep; make clean; make bzImage; make modules; make modules_install
make config; make bzImage; make dep; make clean; make modules; make modules_install
make dep; make clean; make bzImage; make modules; make modules_install; make config
What program will display a list of each hop across the network to a specified destination? Select one.
tracert
rttrace
traceroute
routetrace
init
Which file holds configuration information used during the process of kernel compilation? Select one.
/usr/src/linux/config
/usr/src/linux/.config
/usr/src/linux/kernel.conf
/etc/kernel.conf
/etc/sysconfig/kernel.conf
After a PPP connection is established and authenticated, what needs to be done before the interface can be used? Select one.
Add a route to ppp0.
Enable ppp0.
ifup
ppp0.
Run pppd.
Turn on the modem.
Which of the following is not the name of an Apache configuration file? Select one.
httpd.conf
html.conf
srm.conf
access.conf
Which statement is true regarding the configuration of a printer on a remote Windows machine? Select one.
It can be configured like a TCP/IP network-attached printer.
The input filter must be set to smbprint
.
The Windows printer must contain PostScript capability.
The rp
directive must be used in the printcap file.
Linux can't print to Windows printers.
What types of files are located in the directory tree specified by the Apache DocumentRoot
configuration directive? Select one.
Apache documentation files.
Apache configuration files.
Web site HTML files.
Web site configuration files.
Apache startup and shutdown commands.
Which of the following commands will display a listing of files contained in a tar archive tape in /dev/st0? Select one.
tar cf /dev/st0
tar xf /dev/st0
tar tf /dev/st0
tar -zf /dev/st0
tar -zcvf /dev/st0
What is the systemwide bash configuration file called? Include the entire path.
How can a nonprivileged user configure sendmail to forward mail to another account? Select one.
She can add a new entry in /etc/aliases.
She can create a .forward file containing the new address.
She can create an .alias file containing the new address.
She can create a sendmail.cf file containing the new address.
She cannot forward mail without assistance from the administrator.
How does a process indicate to the controlling shell that it has exited with an error condition? Select one.
It prints an error message to stderr.
It prints an error message to stdout.
It sets an exit code with a zero value.
It sets an exit code with a nonzero value.
It causes a segmentation fault.
Consider the following trivial script called myscript:
#!/bin/bash echo "Hello" echo $myvar
Also consider this command sequence and result:
#set myvar='World'
#./myscript
Hello
The script ran without error but didn't echo
World. Why not? Select one.
The syntax of the set
command is incorrect.
The script executes in a new shell, and myvar
wasn't exported.
The #!/bin/bash
syntax is incorrect.
The $myvar
syntax is incorrect.
The script is sourced by the current shell, and myvar
is available only to new shells.
What does this short configuration file excerpt tell the Samba daemon? Select one.
[home] path = /home guest ok = yes writable = yes
The location of the Samba software is rooted at /home.
A printer called home
uses /home as a spool directory.
A share called home
is located on /home and is writable by authenticated users.
A share called home
is located on /home and is writable by anyone.
A share called home
on remote system guest will be mounted at /home.
How can the finger daemon be enabled? Select one.
Uncomment the in.fingerd line in /etc/inetd.conf.
Use cron
to run fingerd once per minute.
Include fingerd in the TCP wrappers configuration.
Remove fingerd from hosts.deny.
Add fingerd to hosts.allow.