Jan 29, 2006

必要なときにインストール

デスクトップマシンを替えることに伴い、Mozillaに限らず、いろいろと設定やらインストールするものがある。
圧縮・解凍であるが、通常tarを使う。これは初めからインストールされているのかな。
public_htmlというディレクトリを圧縮するなら、
$tar -cvzf archive.tar.gz public_html/
とやって、「archive.tar.gz」という圧縮ファイルを作る。
解凍するなら、
$tar xzvf archive.tar.gz
とやればよい。
「zip」と「lha」は、WindowsやMacでよく使われる圧縮方式なので、これもインストールする。
#apt-get install zip
#apt-get install unzip
#apt-get install lha
「zip」を使って、再帰的にpublic_htmlを圧縮するのは、
$zip -r directory.zip public_html/
とやる。
「.lzh」の拡張子ファイルに圧縮されたファイルをlhaで解凍するには、
$lha -e targetfile.lzh
とする。

WriteBacks
TrackBack ping me at
http://www.haizara.net/~shimirin/blosxom/blosxom.cgi/computer/linux/20060129125716.trackback
Post a comment

writeback message: Ready to post a comment.













Captcha:
To prevent comment spam, please retype the characters in this image:

Enter the text here: