Whatisとaproposコマンドの違いは何ですか?

Whatisとaproposコマンドの違いは何ですか?

セントOS 6.3/RHEL 6.3

whatisコマンドとコマンドの違いを説明できる人はいますかapropos?どちらも基本的にインストールされていることが確認されましたが、違いが何であるかわかりません。

ベストアンサー1

whatisプログラムが実行するアクションの概要を提供するように設計された1行のマンページの説明を表示します。

マニュアルページ名と説明の両方を検索すると、apropos特定のタスクを実行するために使用するプログラムを理解するのに役立ちます。

いくつかの例

dfたとえば、プログラムが何をしているのか知りたいです。whatis答えをください。

$ whatis df
df (1)               - report file system disk space usage

今、アーカイブを解凍したいと思います。apropos考慮すべきいくつかのオプションを提供しました。

$ apropos unzip
bunzip2 (1)          - a block-sorting file compressor, v1.0.6
funzip (1)           - filter for extracting from a ZIP archive in a pipe
gunzip (1)           - compress or expand files
lz (1)               - gunzips and shows a listing of a gzip'd tar'd archive
preunzip (1)         - prefix delta compressor for Aspell
unzip (1)            - list, test and extract compressed files in a ZIP archive
unzipsfx (1)         - self-extracting stub for prepending to ZIP archives
uz (1)               - gunzips and extracts a gzip'd tar'd archive

修正する:

どちらもmanデータベースをwhatis検索するため、aproposシステムにインストールされている項目に関する情報のみを取得できます。

おすすめ記事