How do you create a file called destination containing the same ACLs currently set for the file called source?
A. getfacl source > destination
B. getfacl -c source destination
C. getfacl source | cp destination
D. getfacl -x source > destination
Which file system type supports ACLs without a special mount option?
A. ext2
B. ext3
C. XFS
D. ReiserFS
You have a text file that contains empty lines. Using grep and regular expressions, which command displays the file without the empty lines?
A. grep ^$ file
B. grep [\ ] file
C. grep -v ^$ file
D. grep -v #$ file
You want to use the ip command to set a new address for your network device eth0. It is a standard class
C network. The broadcast address and network route should be set accordingly.
Which command is correct?
A. ip address set 192.168.0.10/24 dev eth0
B. ip address add 192.168.0.10/24 dev eth0
C. ip addr add 192.168.0.10/24 dev eth0 brd +
D. ip addr add eth0 192.168.0.10/24 eth0 broadcast 192.168.255.255
Which protocol is used to send messages by the ping command?
A. NTP
B. FTP
C. TCP
D. ICMP
E. HTTP
F. LDAP
In a terminal window, which command displays the name of the directory you are currently in?
A. dir
B. pwd
C. where
D. current-dir
Which statement about a differential backup is correct?
A. The use of differential backups is limited to backups on tape roboters.
B. To restore a differential backup, you need the last differential backup only.
C. To restore a differential backup, you need the last full backup and the last differential backup that was made since the last full backup.
D. The amount of data that needs to be backed up with each differential backup depends only on the amount of data changed since the last differential backup.
Suppose you change from your current runlevel 5 to the new runlevel 3. Which statement is correct?
A. Nothing will happen at all.
B. If there is a K* link for a certain service in /etc/init.d/rc5.d/ but no corresponding S* link I /etc/init.d/rc3.d/ , nothing will happen.
C. If there is no K* link for a certain service in /etc/init.d/rc5.d/ but there is an S* link in /etc/init.d/rc3.d/, the service is started.
D. If there is a K* link for a certain service in /etc/init.d/rc5.d/ and there is an S* link in /etc/init.d/rc3.d/, the service is stopped and started again.
You want to view the last 20 lines of the /var/log/messages file and any new lines that are subsequently added by syslog to this file. Which command would you use?
A. tail -20f /var/log/messages
B. end -20f /var/log/messages
C. less -20f /var/log/messages
D. follow -20 /var/log/messages
Which command can you use to check an ext2/ext3 file system for a correct superblock, faulty data blocks, or faulty allocation of data blocks?
A. df
B. du
C. fdisk
D. e2fsck
E. reiserfsck