FILL BLANK
Which file from the /proc/ file system contains a list of all currently mounted devices? (Specify the full name of the file, including path.)
A. /proc/mounts
CORRECT TEXT
Which command is used to create and initialize the files used to store quota information? (Specify ONLY the command without any path or parameters.)
Which of the following information is stored within the BIOS? (Choose TWO correct answers.)
A. Boot device order
B. Linux kernel version
C. Timezone
D. Hardware configuration
E. The system's hostname
In compliance with the FHS, in which of the directories are man pages found?
A. /usr/share/man
B. /opt/man
C. /usr/doc/
D. /var/pkg/man
E. /var/man
Which of the following commands will send output from the program myapp to both standard output (stdout) and the file file1.log?
A. cat < myapp | cat > file1.log
B. myapp 0>and1 | cat > file1.log
C. myapp | cat > file1.log
D. myapp | tee file1.log
E. tee myapp file1.log
What is the purpose of the Bash built-in export command?
A. It allows disks to be mounted remotely.
B. It runs a command as a process in a subshell.
C. It makes the command history available to subshells.
D. It sets up environment variables for applications.
E. It shares NFS partitions for use by other systems on the network.
Which of the following commands will NOT update the modify timestamp on the file /tmp/myfile.txt?
A. file /tmp/myfile.txt
B. echo "Hello" >/tmp/myfile.txt
C. sed -ie "s/1/2/" /tmp/myfile.txt
D. echo -n "Hello" >>/tmp/myfile.txt
E. touch/tmp/myfile.txt
Which of the following commands replaces each occurrence of 'bob' in the file letter with 'Bob' and writes the result to the file newletter?
A. sed '/bob/Bob' letter > newletter
B. sed s/bob/Bob/ letter < newletter
C. sed's/bob/Bob' letter > newletter
D. sed 's/bob/Bob/g' letter > newletter
E. sed 's/bob, Bob/' letter > newletter
Which of the following shell redirections will write standard output and standard error output to a file named filename?
A. 2>and1 >filename
B. >filename 2>and1
C. 1>and2>filename
D. >>filename
E. 1and2>filename
Which of the following explanations are valid reasons to run a command in the background of your shell?
A. The command does not need to execute immediately.
B. The command has to run immediately but the user needs to log out.
C. The system is being shut down and the command needs to restart execution immediately after the reboot.
D. The command can run at a lower priority than normal commands run on the command line.
How many fields are in a syntactically correct line of /etc/fstab?
A. 3
B. 4
C. 5
D. 6
E. 7
Which command will uninstall a package but leave its configuration files in case the package is re- installed?
A. dpkg pkgname
B. dpkg pkgname
C. dpkg pkgname
D. dpkg pkgname
Consider the following directory:
drwxrwxr-x 2 root sales 4096 Jan 1 15:21 sales
Which command ensures new files created within the directory sales are owned by the group sales? (Choose two.)
A. chmod g+s sales
B. setpol newgroup=sales sales
C. chgrp sales sales
D. chown --persistent *.sales sales
E. chmod 2775 sales
Which of the following regular expressions represents a single upper-case letter?
A. :UPPER:
B. [A-Z]
C. !a-z
D. %C
E. {AZ}
Given a log file loga.log with timestamps of the format DD/MM/YYYY:hh:mm:ss, which command filters out all log entries in the time period between 8:00 am and 8:59 am?
A. grep `:08:[09]+:[09]+' loga.log
B. grep `:08:[00]+' loga.log
C. grep loga.log `:08:[0-9]+:[0-9]+'
D. grep loga.log `:08:[0-9]:[0-9]'
E. grep `:08:[0-9]+:[0-9]+' loga.log