Update from Sync Service
This commit is contained in:
9
Lunix/Centos/用户管理.md
Executable file
9
Lunix/Centos/用户管理.md
Executable file
@@ -0,0 +1,9 @@
|
||||
==用户列表文件:====/etc/passwd==
|
||||
用户组列表文件:/etc/group
|
||||
查看系统中有哪些用户:cut -d : -f 1 /etc/passwd
|
||||
查看可以登录系统的用户:cat /etc/passwd | grep -v /sbin/nologin | cut -d : -f 1
|
||||
查看用户操作:w命令(需要root权限)
|
||||
查看某一用户:w 用户名
|
||||
查看登录用户:who
|
||||
查看用户登录历史记录:last
|
||||
\> 来自 \<[https://www.cnblogs.com/todarcy/p/11079228.html](https://www.cnblogs.com/todarcy/p/11079228.html)\>
|
||||
Reference in New Issue
Block a user