amirong

linux如何查看所有的用户和组信息?

cat /etc/passwd

cat /etc/passwd|grep

cat /etc/group

cat /etc/group|grep 组名

groups 查看当前登录用户的组内成员

groups test 查看test用户所在的组,以及组内成员

whoami 查看当前登录用户名

分类:

技术点:

相关文章:

  • 2021-12-13
  • 2021-06-15
  • 2022-12-23
  • 2022-12-23
  • 2021-11-22
猜你喜欢
  • 2021-11-22
  • 2021-11-22
相关资源
相似解决方案