Linux下4個查找命令which、whereis、locate、find的使用與區別

Linux下查找相關命令主要有以下4個:which、whereis、locate、find。 (1)which   [-a]    cmdname1 cmdname2 ......            作用:locate a command,從環境變量PATH中,定位/返回與指定名字相匹配的可執行文件所在的路徑            原理:執行which命令時,which會在當前環境變量PATH
相關文章
相關標籤/搜索