1.hostname 指令
操作服务器的主机名(读取、设置 )
#hostname =>输出完整的主机名
#hostname -f =>输出当前主机的FQDN(全限定于名)
2. id 指令 用于查看用户的一些基本信息(包含用户id,用户组id,附加组id)
若不指定用户,默认当前用户
验证用户信息:通过文件 /etc/passwd
验证用户组信息: 通过文件 /etc/group =>此处截屏不完整
4. whoami
显示当前登录的用户名,一般用于shell脚本,用于获取当前曹锁的用户,方便记录日志
5. ps -ef 指令
查看服务器的进程信息
-e: 等价于-A,表示列出全部的进程
-f: 显示全部的列(显示全字段)
查看进程状态
开启火狐:(进程状态)