User Info Flashcards
1
Q
id
A
Display the user and group ids of your
current user
2
Q
last
A
Display the last users who have logged onto
the system.
3
Q
who
A
Show who is logged into the system
4
Q
w
A
Show who is logged in and what they are
doing.
5
Q
groupadd test
A
Create a group named “test”.
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
7
Q
userdel john
A
Delete the john account.
8
Q
usermod -aG sales john
A
Add the john account to the sales group