1. Which of the following commands changes the ownership of file.txt to the user dan and the group staff?
A) A. chown dan/staff file.txt B) B. chown dan:staff file.txt C) C. chown -u dan -g staff file.txt D) D. chown dan -g staff file.txt
2. Which of the following commands makes /bin/foo executable by everyone but writable only by its owner?
A) A. chmod u=rwx,go=rx /bin/foo B) B. chmod o+rwx,a+rx /bin/foo C) C. chmod 577 /bin/foo D) D. chmod 775 /bin/foo
3. 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) A. apropos B) B. which C) C. find D) D. query E) E. whereis
4. What does the command mount -a do?
A) A. It ensures that all file systems listed with the option noauto in /etc/fstab are mounted. B) B. It shows all mounted file systems that have been automatically mounted. C) C. It opens an editor with root privileges and loads /etc/fstab for editing. D) D. It ensures that all file systems listed with the option auto in /etc/fstab are mounted. E) E. It ensures that all file systems listed in /etc/fstab are mounted regardless of their options.
5. Which of the following settings for umask ensures that new files have the default permissions -rw-r----- ?
Leave a comment