特定の Linux 実行可能ファイルの完全なパスを見つける必要がありますか? これどうやってするの?
たとえば、cat の実際のパスは /bin/cat です。
whichまたはを使用locate:
$ which cat
/bin/cat
次のコマンドを使用できます。
$ which ifconfig
/sbin/ifconfig
which programまたwhereis program
$ whatis which
which (1) - shows the full path of (shell) commands
$ whatis whereis
whereis (1) - locate the binary, source, and manual page files for a command