WGU D281 / C851 LPI LINUX ESSENTIALS
EXAM 2025/2026 WITH 100% CORRECT
ANSWERS
1. What is the primary purpose of the 'userdel' command in Linux?
Add a new user
List all users
Modify user permissions
Delete a user account
2. If you want to install a specific package called 'curl' using the command
line, which command would you use?
apt list curl
apt update curl
apt install curl
apt remove curl
3. Which of the following commands is used to show the information
about a directory or a symbolic link?
ls -s
ln -d
ln -s
ls -d
4. Describe the function of the 'groupadd' command in the context of
Linux system administration.
,The 'groupadd' command lists all current user groups.
The 'groupadd' command deletes a specified group from the
, system.
The 'groupadd' command is used to create a new group within
the Linux system.
The 'groupadd' command modifies existing user groups.
5. Which file on a Linux system is modified to set the maximum number of
days before a password must be changed?
/etc/users
/etc/shadow
/etc/groups
/etc/passwd
6. Which option can be used with useradd to specify the home directory
for a user?
-h
-b
-c
-d
7. Directory that contains temporary files created by system and users.
Files under this directory are deleted when the system is rebooted.
/mnt
/tmp
/var
/temp
8. If a system administrator needs to remove a user named 'john' and
ensure all associated files are deleted, which command should they
, use?
deluser john
deluser --remove-home john
removeuser john
userdel john
9. A Linux systems administrator uses the command userdel -r {username}
to delete a user account. Why would the systems administrator add the -
r option to the userdel command?
To check if the ID or name is already in use.
To verify a hashed password exists.
To delete the user's home directory.
To halt or kill all processes.
10. Describe the function of the 'passwd' command in the context of user
management in Linux.
The 'passwd' command deletes user accounts.
The 'passwd' command creates new user accounts.
The 'passwd' command is used to change a user's password in
Linux.
The 'passwd' command lists all users on the system.
11. Describe the role of the syslog in Linux system administration.
The syslog is a tool for compressing files.
The syslog is used to manage user permissions and access.
The syslog records various system messages, which can help in
monitoring system performance and troubleshooting issues.
EXAM 2025/2026 WITH 100% CORRECT
ANSWERS
1. What is the primary purpose of the 'userdel' command in Linux?
Add a new user
List all users
Modify user permissions
Delete a user account
2. If you want to install a specific package called 'curl' using the command
line, which command would you use?
apt list curl
apt update curl
apt install curl
apt remove curl
3. Which of the following commands is used to show the information
about a directory or a symbolic link?
ls -s
ln -d
ln -s
ls -d
4. Describe the function of the 'groupadd' command in the context of
Linux system administration.
,The 'groupadd' command lists all current user groups.
The 'groupadd' command deletes a specified group from the
, system.
The 'groupadd' command is used to create a new group within
the Linux system.
The 'groupadd' command modifies existing user groups.
5. Which file on a Linux system is modified to set the maximum number of
days before a password must be changed?
/etc/users
/etc/shadow
/etc/groups
/etc/passwd
6. Which option can be used with useradd to specify the home directory
for a user?
-h
-b
-c
-d
7. Directory that contains temporary files created by system and users.
Files under this directory are deleted when the system is rebooted.
/mnt
/tmp
/var
/temp
8. If a system administrator needs to remove a user named 'john' and
ensure all associated files are deleted, which command should they
, use?
deluser john
deluser --remove-home john
removeuser john
userdel john
9. A Linux systems administrator uses the command userdel -r {username}
to delete a user account. Why would the systems administrator add the -
r option to the userdel command?
To check if the ID or name is already in use.
To verify a hashed password exists.
To delete the user's home directory.
To halt or kill all processes.
10. Describe the function of the 'passwd' command in the context of user
management in Linux.
The 'passwd' command deletes user accounts.
The 'passwd' command creates new user accounts.
The 'passwd' command is used to change a user's password in
Linux.
The 'passwd' command lists all users on the system.
11. Describe the role of the syslog in Linux system administration.
The syslog is a tool for compressing files.
The syslog is used to manage user permissions and access.
The syslog records various system messages, which can help in
monitoring system performance and troubleshooting issues.