Linux下4个查找命令which、whereis、locate、find的使用与区别

Linux下查找相关命令主要有以下4个:which、whereis、locate、find。 (1)which   [-a]    cmdname1 cmdname2 ......            作用:locate a command,从环境变量PATH中,定位/返回与指定名字相匹配的可执行文件所在的路径            原理:执行which命令时,which会在当前环境变量PATH
相关文章
相关标签/搜索