1/15
Flashcards covering Linux commands for user management, environment discovery, and help documentation.
Name | Mastery | Learn | Test | Matching | Spaced | Call with Kai | Chat |
|---|
No analytics yet
Send a link to your students to track their progress
The __________ command displays the username of the currently logged-in user.
whoami
The __________ command displays the User ID (UID), Group ID (GID), and group memberships of the current user.
id
To display the contents of the /etc/passwd file, you use the command __________.
cat /etc/passwd
The command __________ displays the /etc/passwd file one screen at a time.
cat /etc/passwd | more
The command __________ switches from the current user to the root (administrator) account.
sudo su
The __________/etc/shadow file contains encrypted password information and requires root privileges to be displayed using the __________ command.
cat /etc/shadow
To view the /etc/shadow file one page at a time, use the command __________.
cat /etc/shadow | more
The __________ command exits the current shell or returns the user from the root account to a normal user account.
exit
The __________ command creates a new user account using the system's default settings.
useradd username
The __________ command creates a new user account interactively by prompting for user details.
adduser username
To modify an existing user account, use the command __________.
usermod [option] username
The __________ command changes a user's personal information, such as full name and contact details.
chfn [option] username
To delete a user account, use the __________ command.
userdel username
The command __________ deletes a user account along with its home directory and mail files.
userdel -r username
To display the manual page (documentation) for a Linux command, use the command __________.
man
The command __________ displays the usage information and available options for a command.