Managing Users and Groups Flashcards

1
Q

What is the command to add a new user?

A

useradd

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

How to create a special user accounts

A

useradd -r which will have a UID less than 500 char

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

How to set a password for a new user?

A

passwd username

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

Where is the new user information saved?

A

/etc/passwd

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

where is the group information saved

A

/etc/group Group name, Password,GID and Member list

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

How to list hidden files

A

ls -a

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

Where is the user profile setting saved

A

~/.bash_profile

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