Managing Users and Groups Flashcards
1
Q
What is the command to add a new user?
A
useradd
2
Q
How to create a special user accounts
A
useradd -r which will have a UID less than 500 char
3
Q
How to set a password for a new user?
A
passwd username
4
Q
Where is the new user information saved?
A
/etc/passwd
5
Q
where is the group information saved
A
/etc/group Group name, Password,GID and Member list
6
Q
How to list hidden files
A
ls -a
7
Q
Where is the user profile setting saved
A
~/.bash_profile