搜索命令whereis和which

搜索命令的命令whereislinux

语法        spa

        whereis [选项]  [文件名]搜索

                -b 只查找可执行文件语法

                -m 只查找 帮助文件文件

[root@ly-linux ~]# whereis lsco

ls: /bin/ls /usr/share/man/man1/ls.1.gzbackground

文件位置     帮助文件位置

 

搜索命令的命令which

语法

        which 文件名

[root@ly-linux ~]# which ls

alias ls='ls --color=auto'             别名

                /bin/ls                        文件位置

相关文章
相关标签/搜索