2009-10-01から1ヶ月間の記事一覧

Linuxでの圧縮・解凍

圧縮 file1、file2、dir1、dir2 を comp.tar.gz ファイルに圧縮する。 tar -zcv file1 file2 dir1 dir2 > comp.tar.gz zip comp.zip file1 file2 ... zip -r comp.zip dir1 解凍 上記のように圧縮された comp.tar.gz ファイルを解凍する。 gzip -cd comp.tar…

Linuxで検索

find . -type f -print | xargs grep vmstat カレントディレクトリ以下に、「vmstat」という文字列があるファイルを列挙する。grep に「-E」オプションをつけると拡張正規表現?も使えます。