Skip to content

Commit ea71667

Browse files
authored
Update README.md
managing users and groups
1 parent b620a8b commit ea71667

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -598,6 +598,10 @@ Regular expressions.
598598
- `cat var/log/syslog | grep jenkins` print logs that contains the jenkins keyword.
599599

600600
## Managing users
601+
- `useradd rayan`: to create the new user rayan.
602+
- `usermod -c "rayan bouali" rayan`: update the fullname of the user rayan.
603+
- when a new user created, all the files that exists in `/etc/skel` like `.bashrc` will be copied to the home directory of the new user.
604+
- `id`, `groups`: to know the id of the current user and the groups which the user belong to.
601605
- `cat etc/passwd`: to print the list of users with details like `uis`, `gid`, default bash...
602606
- `cat etc/shadow`: to check the hashed password of the users.
603607
- `cat etc/group`: to print the list of groups.

0 commit comments

Comments
 (0)