Which of the following commands changes the ownership of file.txt to the user dan and the group staff?
A. chown dan/staff file.txt
B. chown dan:staff file.txt
C. chown -u dan -g staff file.txt
D. cho...
Which of the following commands can be used to locate programs and their corresponding man pages and configuration files?
A. dirname
B. which
C. basename
D. query
E. whereis
In order to display all currently mounted filesystems, which of the following commands could be used? (Choose TWO correct answers.)
A. cat /proc/self/mounts
B. free
C. mount
D. lsmounts
E. cat /proc/...
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 mo...
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
Which of the following commands makes /bin/foo executable by everyone but writable only by its owner?
A. chmod u=rwx,go=rx /bin/foo
B. chmod o+rwx,a+rx /bin/foo
C. chmod 577 /bin/foo
D. chmod 775 /bi...
After moving data to a new filesystem, how can the former path of the data be kept intact in order to avoid reconfiguration of existing applications? (Choose TWO correct answers.)
A. By creating an A...
After successfully creating a hard link called bar to the ordinary file foo, foo is deleted from the filesystem. Which of the following describes the resulting situation?
A. foo and bar would both be...