Tips記事
» 2000年07月26日 00時00分 UPDATE

実行ファイルを見つけたい

[ITmedia]

 UNIXでは,一般的にパス指定のされているディレクトリを走査して実行ファイルを見つけ出す方法として,whereisなどがある。

$ whereis perl
perl: /usr/bin/perl5.00503 /usr/bin/perl /usr/man
/man1/perl.1

 しかし,whereisでは実行ファイルそのものはみつかるものの,関連するドキュメントファイルなどはヒットしない。そんなときは,locateコマンドを利用すればよい。

$ locate perl
/home/httpd/html/manual/mod/mod_perl.html
/usr/doc/inn-2.2.1/README.perl_hook
/usr/doc/mod_perl-1.21
/usr/doc/mod_perl-1.21/CREDITS
/usr/doc/mod_perl-1.21/Changes
/usr/doc/mod_perl-1.21/INSTALL
/usr/doc/mod_perl-1.21/README
/usr/doc/mod_perl-1.21/SUPPORT
/usr/doc/mod_perl-1.21/ToDo
/usr/doc/mod_perl-1.21/apache-modlist.html
/usr/doc/mod_perl-1.21/cgi_to_mod_perl.pod
/usr/doc/mod_perl-1.21/eg
/usr/doc/mod_perl-1.21/eg/README
/usr/doc/mod_perl-1.21/eg/httpd.conf.pl
/usr/doc/mod_perl-1.21/eg/makepl_args.mod_perl
/usr/doc/mod_perl-1.21/eg/perl_sections.txt
/usr/doc/mod_perl-1.21/eg/registry.pl
/usr/doc/mod_perl-1.21/eg/startup.pl
/usr/doc/mod_perl-1.21/eg/test.pl
/usr/doc/mod_perl-1.21/faq
/usr/doc/mod_perl-1.21/faq/Makefile
/usr/doc/mod_perl-1.21/faq/mjtg-news.txt
--More--

Copyright © ITmedia, Inc. All Rights Reserved.

注目のテーマ