Linux User Management Flashcards

0.0(0)
Studied by 0 people
call kaiCall Kai
Locked
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/15

flashcard set

Earn XP

Description and Tags

Flashcards covering Linux commands for user management, environment discovery, and help documentation.

Last updated 2:01 AM on 8/18/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

16 Terms

1
New cards

The __________ command displays the username of the currently logged-in user.

whoami

2
New cards

The __________ command displays the User ID (UID), Group ID (GID), and group memberships of the current user.

id

3
New cards

To display the contents of the /etc/passwd file, you use the command __________.

cat /etc/passwd

4
New cards

The command __________ displays the /etc/passwd file one screen at a time.

cat /etc/passwd | more

5
New cards

The command __________ switches from the current user to the root (administrator) account.

sudo su

6
New cards

The __________/etc/shadow file contains encrypted password information and requires root privileges to be displayed using the __________ command.

cat /etc/shadow

7
New cards

To view the /etc/shadow file one page at a time, use the command __________.

cat /etc/shadow | more

8
New cards

The __________ command exits the current shell or returns the user from the root account to a normal user account.

exit

9
New cards

The __________ command creates a new user account using the system's default settings.

useradd username

10
New cards

The __________ command creates a new user account interactively by prompting for user details.

adduser username

11
New cards

To modify an existing user account, use the command __________.

usermod [option] username

12
New cards

The __________ command changes a user's personal information, such as full name and contact details.

chfn [option] username

13
New cards

To delete a user account, use the __________ command.

userdel username

14
New cards

The command __________ deletes a user account along with its home directory and mail files.

userdel -r username

15
New cards

To display the manual page (documentation) for a Linux command, use the command __________.

man

16
New cards

The command __________ displays the usage information and available options for a command.

--help