Hatena::Groupmylinux

今日も元気にlinux

2008-11-14

[][][][][]いろいろな検索方法 14:49 いろいろな検索方法 - 今日も元気にlinux を含むブックマーク はてなブックマーク - いろいろな検索方法 - 今日も元気にlinux いろいろな検索方法 - 今日も元気にlinux のブックマークコメント

ファイルを検索するのに一番早いのは、updatedbコマンドで作成したインデックスファイルを走査するlocateコマンドである。ただし複雑な正規表現はつかえずファイル名でしか検索が出来ない。これに対してfindはあまり早くないが多彩な検索が可能。速度だけなら、locateがgoogleデスクトップ並み、findが普通の検索。

whichならプログラムのみ(つまり実行ファイル属性)検索することができる。

# which httpd
/usr/sbin/httpd

※2008/11/23訂正

whichはパスの通ったディレクトリ配下の実行ファイルを探すようである。なので、/etc/init.d/以下の実行ファイルは検索してくれない。

# which yum-cron
/usr/bin/which: no yum-cron in (/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)

whereisを使えば、実行ファイルのパス名やライブラリマニュアルの場所を検索できる。


# whereis httpd
httpd: /usr/sbin/httpd /usr/sbin/httpd.worker /etc/httpd /usr/lib/httpd /usr/share/man/man8/httpd.8.gz

DestrieDestrie2011/10/16 11:38Your story was really informative, thakns!

zqgjipyjzzqgjipyjz2011/10/16 23:196jCM6W <a href="http://haypgxyrinrv.com/">haypgxyrinrv</a>

jvoopsscajyjvoopsscajy2011/10/18 00:27d6DRS3 , [url=http://jvhjvflxpini.com/]jvhjvflxpini[/url], [link=http://esyxljrajdsk.com/]esyxljrajdsk[/link], http://qxnqanggkyfk.com/

vvulqdmvvulqdm2011/10/19 01:25q1ARVi <a href="http://raawkgksiffu.com/">raawkgksiffu</a>

mbcyloumbcylou2011/10/19 22:38Z0EVBS , [url=http://ljwojlvnnmvb.com/]ljwojlvnnmvb[/url], [link=http://hoxtonylswuz.com/]hoxtonylswuz[/link], http://aacrchvbcnjg.com/

MarieMarie2012/08/22 23:27Thinking like that shows an eprxet at work

rdnugytdmrdnugytdm2012/08/27 00:598Q9KzQ , [url=http://uwbxlrffgvtl.com/]uwbxlrffgvtl[/url], [link=http://nexwxkqwjecu.com/]nexwxkqwjecu[/link], http://mijjngcpulik.com/

rdnugytdmrdnugytdm2012/08/27 00:598Q9KzQ , [url=http://uwbxlrffgvtl.com/]uwbxlrffgvtl[/url], [link=http://nexwxkqwjecu.com/]nexwxkqwjecu[/link], http://mijjngcpulik.com/

AduyiteagoAduyiteago2018/04/18 00:19https://onlinecasino.gb.net/# - online casino games
<a href="https://onlinecasino.gb.net/#">online casino real money</a>
<a href=" https://onlinecasino.gb.net/# ">online casino games</a>

ApzldteagoApzldteago2018/04/19 13:06https://onlinecasino.gb.net/# - best online casino
<a href="https://onlinecasino.gb.net/#">best online casino</a>
<a href=" https://onlinecasino.gb.net/# ">online casino real money</a>

AgbqvteagoAgbqvteago2018/04/23 19:51https://onlinecasino777.us.org/# - free casino
<a href="https://onlinecasino777.us.org/#">free online casino slots</a>
<a href=" https://onlinecasino777.us.org/# ">tropicana online casino</a>

AwxkxteagoAwxkxteago2018/04/23 22:05https://onlinecasino777.us.org/# - winstar casino
<a href="https://onlinecasino777.us.org/#">huuuge casino slots</a>
<a href=" https://onlinecasino777.us.org/# ">free casino slots games</a>

AlkdbteagoAlkdbteago2018/04/24 00:51https://onlinecasino777.us.org/# - casino blackjack
<a href="https://onlinecasino777.us.org/#">online casino real money free</a>
<a href=" https://onlinecasino777.us.org/# ">playmgm nj casino online</a>

AmbsfteagoAmbsfteago2018/04/24 02:19https://onlinecasino777.us.org/# - party casino online
<a href="https://onlinecasino777.us.org/#">free casino games slot</a>
<a href=" https://onlinecasino777.us.org/# ">free vegas world casino games</a>

AaianteagoAaianteago2018/04/30 16:08borgata online casino <a href="https://onlinecasino2018.us.org/#">best online casino</a> tropicana online casino | https://onlinecasino2018.us.org/# - online gambling

AwqwmteagoAwqwmteago2018/04/30 17:00online gambling <a href="https://onlinecasino24.us.com/#">zone online casino</a> foxwoods online casino | https://onlinecasino24.us.com/# - online casino

AxtzsteagoAxtzsteago2018/04/30 17:28mgm online casino nj <a href="https://onlinecasinoplay.us.org/#">free online casino</a> san manuel online casino | https://onlinecasinoplay.us.org/# - betfair online casino

AjsavteagoAjsavteago2018/05/01 03:34betfair online casino <a href="https://onlinecasinomansion24.com/#">online casinos for us players</a> mgm online casino https://onlinecasinomansion24.com/# - mgm online casino

AzsgrteagoAzsgrteago2018/05/01 03:34betfair online casino <a href="https://onlinecasinoplay24.com/#">online gambling casino</a> free online casino https://onlinecasinoplay24.com/# - mgm online casino

AfvvoteagoAfvvoteago2018/05/01 06:17online casino slots <a href="https://onlinecasinolime.com/#">online casino games</a> online casino real money https://onlinecasinolime.com/# - online casino real money

AughhteagoAughhteago2018/05/01 08:16online casino games <a href="https://onlinecasinoplay24.com/#">online casino real money</a> online casino real money https://onlinecasinoplay24.com/# - best online casinos

AatazteagoAatazteago2018/05/01 08:32casino blackjack <a href="https://onlinecasinoplay.us.org/#">casino online</a> free online casino https://onlinecasinoplay.us.org/# - online casino real money

AptcfteagoAptcfteago2018/05/01 09:32best online casino <a href="https://onlinecasinolime.com/#">best online casino</a> betfair online casino | https://onlinecasinolime.com/# - online gambling casino

AmamxteagoAmamxteago2018/05/01 09:47free online casino <a href="https://onlinecasinoplay24.com/#">best online casino</a> online gambling casino | https://onlinecasinoplay24.com/# - online casino slots

AemgjteagoAemgjteago2018/05/01 10:01online gambling <a href="https://onlinecasinomansion24.com/#">online gambling casino</a> best online casinos | https://onlinecasinomansion24.com/# - online gambling

AzukateagoAzukateago2018/05/01 10:32mgm online casino <a href="https://onlinecasinolime.com/#">best online casinos</a> best online casino https://onlinecasinolime.com/# - best online casino

AvjzxteagoAvjzxteago2018/05/01 20:19free online casino <a href="https://onlinecasinoplay.us.org/#">best online casinos</a> betfair online casino https://onlinecasinoplay.us.org/# - online casinos for us players

AaoqjteagoAaoqjteago2018/05/02 03:45online casino games <a href="https://onlinecasinoinus.com/#">best online casino</a> best online casinos https://onlinecasinoinus.com/# - online gambling

AtwvateagoAtwvateago2018/05/02 05:09online casino <a href="https://onlinecasinovegas.us.org/#">betfair online casino</a> online casino games https://onlinecasinovegas.us.org/# - online casino slots

AsmvyteagoAsmvyteago2018/05/02 07:11casino online <a href="https://onlinecasinochase.com/#">online casino slots</a> online casino slots https://onlinecasinochase.com/# - best online casinos

AkhseteagoAkhseteago2018/05/02 07:37mgm online casino <a href="https://onlinecasinoinus.com/#">free online casino</a> casino online https://onlinecasinoinus.com/# - free online casino

AsvftteagoAsvftteago2018/05/02 08:37online casino real money <a href="https://onlinecasino24.us.org/#">online casino</a> casino blackjack https://onlinecasino24.us.org/# - online gambling casino

AvdlhteagoAvdlhteago2018/05/02 09:08online casinos for us players <a href="https://onlinecasinoiplay.com/#">best online casinos</a> online casino [url=https://onlinecasinoiplay.com/#]best online casino[/url]

AeopqteagoAeopqteago2018/05/02 09:10online gambling casino <a href="https://onlinecasino777.us.org/#">best online casino</a> online casinos for us players https://onlinecasino777.us.org/# - mgm online casino