chapter 10 quiz linux
Which of the following commands can be used to remove a group from a Linux system? (Choose all that apply.)
delgroup groupdel
Emily accidentally created a new user account on the wrong server. Which of the following commands could she use to delete the account she created? (Choose all that apply.)
deluser userdel
Which of the following is the log file where the Debian Package Manager writes entries for actions taken and packages installed?
dpkg.log
Which of the following commands can you use to view events within the journald database?
journalctl
Which of the following commands can be used to set the default printer for all users on a Linux system where printer1 is the name of the printer?
lpoptions -d printer1
Which of the following commands can be used to set the number of days until user account jsmith with an expired password is disabled?
usermod -f 15 jsmith
Which of the following is the first field of the /etc/passwd file?
username
In which of the following directories can you place files that will be copied to new user directories when new users are created?
/etc/skel
Which of the following environment variables can you change the value of to set the default printer on a Linux system? (Choose two.)
LPDEST PRINTER
Which of the following will display the contents of the /etc/shadow file? (Choose all that apply.)
cat /etc/shadow getent /etc/shadow