セント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
システムにインストールされている項目に関する情報のみを取得できます。