User and group basic knowledge of Linux file attributes

root               😡                  :0                  :0                  :root                  :/root                  :/bin/bash

Account Name: Account Password: Account UID: Account Group GID: User Description: User Home Directory: Shell Interpreter

 

Small conclusion:

1.useraddAdding users will change /etc/passwd, /etc/shadow, /etc/group, /etc/gshadow

2.passwdSetting the password for the user will change the /etc/shadow

3.groupaddAdding user groups will change /etc/group, /etc/gshadow

 

last View user login information, /var/log/wtmp data file

lastlog Displays recently logged user information. /var/log/lastlog data file

id View user and group information

ln Create soft and hard link -s soft

du View file and directory size -sh

 

Leave a Reply

Your email address will not be published. Required fields are marked *