首先先了解用户管理的概念:Users and groups:
. Every process (running program) on the system runs as a particular user.
. Every file is owned by a particular user.
. Access to files and directories are restricted by user.
用户和组: 。系统中的每个进程(运行程序)都以特定用户的身份运行。 。每个文件都属于一个特定的用户。 。用户限制对文件和目录的访问。 。与正在运行的进程相关联的用户确定该进程可访问的文件和目录。
那么在了解一下用户的作用及其他的命令
:查看当前登录的用户信息:[root@localhost ~]# id
![883f52971ae4d2773565293608857a05.png](https://i-blog.csdnimg.cn/blog_migrate/bc67a967ccb8717db71093a8e0fef862.png)
查看文件的owner:
![437b941fe20d9b1a3af146297729a550.png](https://i-blog.csdnimg.cn/blog_migrate/2d02ef2811c9e731e9c314df080a3a7a.png)
查看运行进程的username:这个就不列图了他即相当于平常的任务管理器,查看进程的意思。
以下是重点:
用户组信息存储的文件:
1.用户基本信息