CORRECT TEXT
Which file from the /proc file system contains a list of all currently mounted devices? (Specify ONLY the command without any path or parameters.)
CORRECT TEXT
Which option to the yum command will update the entire system? (Specify ONLY the option name without any additional parameters.)
CORRECT TEXT
Which umask value will result in the default access permissions of 600 (rw-------) for files and 700 (rwx------) for directories? (Specify only the numerical umask value.)
What command will generate a list of user names from /etc/passwd along with their login shell?
A. column -s : 1,7 /etc/passwd
B. chop -c 1,7 /etc/passwd
C. colrm 1,7 /etc/passwd
D. cut -d: -f1,7 /etc/passwd
When running the command sed -e "s/a/b/" /tmp/file >/tmp/file While /tmp/file contains data, why is /tmp/file empty afterwards?
A. The file order is incorrect. The destination file must be mentioned before the command to ensure redirection.
B. The command sed did not match anything in that file therefore the output is empty.
C. When the shell establishes the redirection it overwrites the target file before the redirected command starts and opens itfor reading.
D. Redirection for shell commands do not work using the > character. It only works using the | character instead.
Which of the following commands can be used to search for the executable file foo when it has been placed in a directory not included in $PATH?
A. apropos
B. which
C. find
D. query
E. whereis
What does the command mount -a do?
A. It ensures that all file systems listed with the option noauto in /etc/fstab are mounted.
B. It shows all mounted file systems that have been automatically mounted.
C. It opens an editor with root privileges and loads /etc/fstab for editing.
D. It ensuresthat all file systems listed with the option auto in /etc/fstab are mounted.
E. It ensures that all file systems listed in /etc/fstab are mounted regardless of their options.
What do the permissions -rwSr-xr-x mean for a binary file when it is executed as a command?
A. The command is SetUID and it will be executed with the effective rights of the owner.
B. The command will be executed with the effective rights of the group instead of the owner.
C. The execute flag is not set for the owner. Therefore the SetUID flag is ignored.
D. The command will be executed with the effective rights of the owner and group.
Which of the following commands enables the setuid (suid) permission on the executable /bin/foo?
A. chmod 1755 /bin/foo
B. chmod 4755 /bin/foo
C. chmod u-s /bin/foo
D. chmod 755+s /bin/foo
What is the first program the Linux kernel starts at boot time when using System V init?
A. /lib/init.so
B. /proc/sys/kernel/init
C. /etc/rc.d/rcinit
D. /sbin/init
E. /boot/init