鍍金池/ 問答/Linux/ Linux whereis查不出文件?

Linux whereis查不出文件?

在學(xué)whereis語句遇到的一個(gè)問題:
我是ubuntu系統(tǒng),在主目錄下有個(gè)VMwareTools-10.2.0-7259539.tar.gz
圖片描述

然后我使用如下命令: whereis VMwareTools-10.2.0-7259539.tar.gz
如圖:
圖片描述

發(fā)現(xiàn)查不出來

我又使用locate命令:
圖片描述

結(jié)果可以查出

為什么whereis查不出來??

回答
編輯回答
浪蕩不羈

find / -name filename 也可以查找

2017年10月20日 23:42
編輯回答
貓小柒

學(xué)習(xí)一個(gè)命令的最好方式是看 man 文檔。

whereis 的 man 文檔是這么介紹 whereis 的:

whereis - locate the binary, source, and manual page files for a command

翻譯過來就是:定位一個(gè)命令的二進(jìn)制,源代碼以及 man 文檔

2018年4月13日 18:23