zl程序教程

您现在的位置是:首页 >  系统

当前栏目

Linux 用户列表

Linux列表 用户
2023-09-14 09:09:49 时间

查看用户

cat /etc/passwd | grep -Ev "nologin|halt|shutdown|false"
# cat /etc/passwd | grep -Ev "nologin|halt|shutdown|false"
root:x:0:0:root:/root:/bin/bash
sync:x:4:65534:sync:/bin:/bin/sync
ubuntu:x:1000:1000:ubuntu:/home/ubuntu:/bin/bash

参考

  1. Linux下查看用户列表