« 英辞郎 第四版をEBViewで使うの巻 | Main | Libretto L2がLinuxをインストールすると再起動(reboot)しない件 »

October 17, 2008

今更学習したこと

ネットで検索してて,以下2点を発見.学習した.皆さんにもお知らせ.

・高速ファイル検索
/etcの下から,"hogehoge"って文字列の入ったファイルを探す必要ができた.ネットで調べたら.

$ find /etc -type f -print0 | xargs -0 grep hogehoge /dev/null

で,いいらしい.
$ find /etc -type f -exec grep hogehoge {} \;

より高速らしいよ.

・sudoでリダイレクトで書き込もうとしたらpermission deniedになっちゃったとき
例えば,前の記事で,

$ sed 's/jp.archive.ubuntu.com/ubuntu-ashisuto.ubuntulinux.jp/' \
/etc/apt/sources.list > sources.new

とホームディレクトリにリダイレクトすればOKだが,
$ sed 's/jp.archive.ubuntu.com/ubuntu-ashisuto.ubuntulinux.jp/' \
/etc/apt/sources.list > /etc/apt/sources.new

はsedの前にsudoをつけでも/etc/aptに書き込み権限がないのでpermission deniedだ.
そういうときは,(例が長くて恐縮だが)
$ sed 's/jp.archive.ubuntu.com/ubuntu-ashisuto.ubuntulinux.jp/' \
/etc/apt/sources.list | sudo tee /etc/apt/sources.new > /dev/null

でいけるらしい.

色々と奥深い.

|

« 英辞郎 第四版をEBViewで使うの巻 | Main | Libretto L2がLinuxをインストールすると再起動(reboot)しない件 »

パソコン・インターネット」カテゴリの記事

Comments

I was extremely pleased to find this page. I need to to thank you for your time for this wonderful read!! I definitely really liked every little bit of it and I have you book marked to check out new stuff on your web site.

Posted by: get free itunes gift card free instagram followers | April 22, 2015 at 07:34 PM

I quite like looking through an article that can make people think. Also, thanks for allowing for me to comment!

Posted by: CT limo | May 15, 2015 at 03:10 PM

Excellent blog you have here but I was wondering if you knew of any user discussion forums that cover the same topics talked about in this article? I'd really like to be a part of group where I can get feed-back from other knowledgeable people that share the same interest. If you have any recommendations, please let me know. Kudos!

Posted by: Paramotor - Paramotoring Trip | June 04, 2015 at 08:36 PM

Hi i am kavin, its my first time to commenting anyplace, when i read this post i thought i could also make comment due to this good post.

Posted by: CT limo | July 06, 2015 at 01:00 PM

Write more, thats all I have to say. Literally, it seems as though you relied on the video to make your point. You definitely know what youre talking about, why waste your intelligence on just posting videos to your site when you could be giving us something enlightening to read?

Posted by: CT limo | July 23, 2015 at 10:53 AM

Someone essentially help to make severely articles I would state. That is the very first time I frequented your website page and up to now? I amazed with the analysis you made to make this particular publish incredible. Fantastic process!

Posted by: AC Repair Simi Valley | September 15, 2015 at 02:17 AM

Have you ever thought about adding a little bit more than just your articles? I mean, what you say is valuable and all. But imagine if you added some great photos or video clips to give your posts more, "pop"! Your content is excellent but with pics and clips, this website could certainly be one of the best in its niche. Superb blog!

Posted by: free computer inventory management software | September 24, 2015 at 11:38 AM

It is not my first time to pay a quick visit this web page, i am browsing this web site dailly and get nice information from here all the time.

Posted by: smog check - auto repair manuals oxnard | September 27, 2015 at 11:04 PM

Post a comment



(Not displayed with comment.)




TrackBack

TrackBack URL for this entry:
http://app.cocolog-nifty.com/t/trackback/37290/42816619

Listed below are links to weblogs that reference 今更学習したこと:

« 英辞郎 第四版をEBViewで使うの巻 | Main | Libretto L2がLinuxをインストールすると再起動(reboot)しない件 »