File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff 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.
You can’t perform that action at this time.
0 commit comments