< 返回新闻公告列表

Centos如何查看用户

发布时间:2023-10-9 10:13:14    来源: 纵横云

Centos如何查看用户

1.用户列表文件:/etc/passwd/

Centos如何查看用户4929

2.用户组列表文件:/etc/group

Centos如何查看用户4930

3.查看系统中有哪些用户:cut -d : -f 1 /etc/passwd

Centos如何查看用户4931

4.查看可以登录系统的用户:cat /etc/passwd | grep -v /sbin/nologin | cut -d : -f 1

Centos如何查看用户4932

5.查看用户操作:w命令(需要root权限)

Centos如何查看用户4933

6.查看某一用户:w 用户名

Centos如何查看用户4934

7.查看登录用户:who

Centos如何查看用户4935
19906048601
19906048601 19906048601
返回顶部
返回顶部 返回顶部