What is the primary purpose of the visudo command?
- Edit the sudoers file safely
- View system logs
- Manage user passwords
- Install software packages
The primary purpose of the visudo command is to safely edit the sudoers file. The sudoers file specifies which users or groups are allowed to run commands with elevated privileges using sudo. Using visudo is recommended because it checks the syntax of the file and prevents potential errors that could lock you out of your system.
Loading...
Related Quiz
- Which service in Linux is responsible for resolving domain names to IP addresses?
- What is the primary function of kernel modules in Linux?
- In shell scripting, a loop that processes each item in a list one by one is known as a _________ loop.
- When setting up SSH for the first time, the server-side cryptographic keys are stored in the /etc/ssh/________ directory.
- The ________ mechanism in Linux allows processes to communicate with each other, commonly used in IPC.