Linux Basic Commands for DevOps (PART-2)
Dear Readers, In this article we will see Linux basic commands for DevOps(Part-2) Please check below article for part-1 Basic Linux Commands for DevOps (PART-1) Users and Groups Add a new user
1 |
[root@ip-172-31-43-80 ec2-user]# useradd Ramesh |
To see the list of users
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
[root@ip-172-31-43-80 ec2-user]# cat /etc/passwd root:x:0:0:root:/root:/bin/bash bin:x:1:1:bin:/bin:/sbin/nologin daemon:x:2:2:daemon:/sbin:/sbin/nologin adm:x:3:4:adm:/var/adm:/sbin/nologin lp:x:4:7:lp:/var/spool/lpd:/sbin/nologin sync:x:5:0:sync:/sbin:/bin/sync libstoragemgmt:x:999:997:daemon account for libstoragemgmt:/var/run/lsm:/sbin/nologin ec2-instance-connect:x:998:996::/home/ec2-instance-connect:/sbin/nologin postfix:x:89:89::/var/spool/postfix:/sbin/nologin chrony:x:997:995::/var/lib/chrony:/sbin/nologin tcpdump:x:72:72::/:/sbin/nologin ec2-user:x:1000:1000:EC2 Default User:/home/ec2-user:/bin/bash Ramesh:x:1001:1001::/home/Ramesh:/bin/bash |
To see recently created users… Read More