cat /etc/passwd

linux用户和组信息查看

cat /etc/passwd|grep 用户名,用于查找某个用户
cat /etc/group查看所有组信息
groups 查看当前登录用户的组内成员
groups test 查看test用户所在的组,以及组内成员
whoami 查看当前登录用户名

相关文章:

  • 2021-12-12
  • 2021-11-18
  • 2021-12-13
猜你喜欢
  • 2021-10-14
  • 2022-12-23
  • 2021-11-22
  • 2021-03-31
  • 2021-11-22
相关资源
相似解决方案