which命令
来源:原创     更新时间:2018-08-26 01:22:53      作者:管理员      浏览:2417
			  - 命令描述
 
- 命令语法
 
- 命令选项
 
-p<文件名长度>:与-n参数相同,但此处的<文件名长度>包含了文件的路径;
-w:指定输出时栏位的宽度;
-V:显示版本信息。
- 命令参数
 
- 命令实例
 
实例1:显示命令的路径
[root@linuxbaodian files]# which which alias which='alias | /usr/bin/which --tty-only --read-alias --show-dot --show-tilde' /usr/bin/which [root@linuxbaodian files]# which whereis /usr/bin/whereis [root@linuxbaodian files]# which pwd /bin/pwd
实例2:显示多个命令的路径
[root@linuxbaodian files]# which whereis which find locate alias which='alias | /usr/bin/which --tty-only --read-alias --show-dot --show-tilde' /usr/bin/which /usr/bin/whereis /bin/find /usr/bin/locate


标签:
