如何列出Linux上的所有用户和组?
user:root之间有什么区别user:root和user:othergroup ?
user:root
user:othergroup
getent(1)
user:root是用户user和组root的组合。 user:othergroup是用户user和其他组的othergroup 。
user
root
othergroup
在命令行中,只需查看文件/etc/passwd和/etc/group 。 您所查找的信息位于第一列。
/etc/passwd
/etc/group