名前

which - コマンドの場所

書式

which [-a] filename ...

説明

which returns the pathnames of the files (or links) which would be executed in the current environment, had its arguments been given as commands in a strictly POSIX-conformant shell. It does this by searching the PATH for executable files matching the names of the arguments. It does not canonicalize path names.

オプション

-a
各引数に一致したすべてのパス名を表示します。

終了ステータス

0
指定したコマンドがすべて見つかり、実行可能な場合
1
いくつかのコマンドがないか、実行可能でない場合
2
無効なオプションを指定した場合

翻訳

倉澤 望 <[email protected]>, 2012
 
Debian JP Documentation ML <[email protected]>
 

Questions & Answers

Helpful answers and articles about which.debianutils you may found on these sites:
Stack Overflow Server Fault Super User Unix & Linux Ask Ubuntu Network Engineering DevOps Raspberry Pi Webmasters Google Search