Some important Linux commands for user management.
1: useradd Rashid
Creates a new user named Rashid.
2: groupadd DevOps
Will create a new group called DevOps.
3: cat /etc/gpasswd -a/m displays all the users.
4: gpasswd -a username groupname
This -a flag is used to add a single user into the group.
gpasswd -m user1, user2, user3 DevOps here -m allows us to add multiple users at a given time in a group.
5: cat /etc/group
Is the file containing group info.
ln -s file1 softFile1 creates a shortcut of file1 named softFile1.
ln without -s flag is used to create a hard link. Which is the exact same backup copy of the file.
tar -cvf xyz.tar dir creates a .tar file named xyz.tar adding contents of the dir directory.
-gzip xyz.tar is used to compress xyz.tar and creates xyz.tar.gz file.
gunzip xyz.tar is the reverse of gzip.
Give a thumbs up if this video was helpful for you!
For any suggestion or complaints, please comment.
inquiries at [email protected]
Share, support & Subscribe,
Follow me on Twitter @rashidwassaan
Let's get connected on LinkedIn: / rashidwassan
Facebook page: www.facebook.com/RashidThinks
Instagram account: / rashidwassaan
Thanks for watching!😊