User Info Flashcards

1
Q

id

A

Display the user and group ids of your
current user

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

last

A

Display the last users who have logged onto
the system.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

who

A

Show who is logged into the system

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

w

A

Show who is logged in and what they are
doing.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

groupadd test

A

Create a group named “test”.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

useradd -c “John Smith” -m john

A

Create an account named john, with a comment of “John Smith” and create the user’s
home directory

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

userdel john

A

Delete the john account.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

usermod -aG sales john

A

Add the john account to the sales group

How well did you know this?
1
Not at all
2
3
4
5
Perfectly