Linux 用户管理(三)

一、userdel  --delete a user account and related files 

  -r  --remove 删除用户及家目录

二、id  --print real and effective user and group IDs

  显示用户UID,GID 和groups

三、w  --show who is logged on and what they are doing.

  显示谁(用户)正在登陆和正在做什么

四、last  --show listing of last logged in users   /var/log/wtmp

  显示登陆用户信息(登陆历史)

五、lastlog  --reports the most recent login of all users or of a given user

  显示所有用户最近登陆信息

  

猜你喜欢

转载自www.cnblogs.com/gaogzhen/p/10022782.html