標籤:http ar sp for on 資料 div 2014 bs
在好久沒有和大家分享 Linux 命令方面的東東了,Linux 是一個以命令操作為主的系統,眾多的命令與其作用,要想都記住也不太現實。因此,用 man info whatis 等工具來查看命令的作用就很重要了。 Linux 中的 whatis 命令可以從它的字面意思可以看出來,就是“這是什麼”,通過它可以知道某命令是用來幹什麼的,而且是用很簡短的方式來描述。
AD:2014WOT全球軟體技術峰會北京站 課程視頻發布
在好久沒有和大家分享 Linux 命令方面的東東了,Linux 是一個以命令操作為主的系統,眾多的命令與其作用,要想都記住也不太現實。因此,用 man info whatis 等工具來查看命令的作用就很重要了。 Linux 中的 whatis 命令可以從它的字面意思可以看出來,就是“這是什麼”,通過它可以知道某命令是用來幹什麼的,而且是用很簡短的方式來描述。
如果你是 RHEL 6 的迷你安裝,就沒有包含 man whatis 命令,你需要安裝 man 。whatis 可能大家會比較熟悉,但是 makewhatis 呢?其實 whatis 啟動並執行結果是需要把命令的情況檢索到它的資料庫中的。對於還沒有這個資料庫的系統,就需要用 makewhatis 命令來讓系統立即檢索。否則系統將在一定的時候自動檢索。通過下面的命令啟動並執行執行個體,大家就應該比較清楚地瞭解到這一點了。
[[email protected] media]# whatis whatiswhatis: nothing appropriate[[email protected] media]# whatis makewhatismakewhatis: nothing appropriate[[email protected] media]# whatis lsls: nothing appropriate[[email protected] media]# makewhatis[[email protected] media]# whatis whatiswhatis (1) – search the whatis database for complete words[[email protected] media]# whatis makewhatismakewhatis (8) – Create the whatis database
原文串連:http://www.ownlinux.cn/2011/04/01/linux-whatis-makewhatis.html
Linux中whatis與makewhatis的作用