CompTIA Linux+ (XK0-005) — Question 82
Which of the following commands is used to configure the default permissions for new files?
Answer options
- A. setenforce
- B. sudo
- C. umask
- D. chmod
Correct answer: C
Explanation
The correct answer is 'umask' because it determines the default permission settings for newly created files and directories. The 'setenforce' command is used to change the mode of SELinux, 'sudo' allows a permitted user to execute a command as the superuser, and 'chmod' is used to change the permissions of existing files, not their default settings.