您的位置:首页 > 运维架构 > Linux

Linux入门:常用命令:man、which、whereis、whatis、whoami命令帮助

2016-09-28 11:29 435 查看

命令帮助

[root@localhost ~]#man ps
#查看一个命令或服务的详细帮助信息


[root@localhost ~]# whatis ls
ls                   (1)  - list directory contents
ls                   (1p)  - list directory contents


[root@localhost ~]# which ls
#
alias ls='ls --color=auto'
/bin/ls


[root@localhost ~]# whereis ls
#查看命令或程序的相关文件安装目录
ls: /bin/ls /usr/share/man/man1p/ls.1p.gz /usr/share/man/man1/ls.1.gz


[root@bogon ~]# whoami
#查看当前用户
root
You have new mail in /var/spool/mail/root
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  linux man whatis which whereis