Linux中whatis與makewhatis的作用

來源:互聯網
上載者:User

標籤: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的作用

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.