zip/unzip によるファイルの圧縮/解凍
2009/07/14 22:20Update
ファイルの圧縮/解凍zip/unzip コマンドのよくある使い方について解説します。
ファイル圧縮
$ zip file.zip target-files
$ zip file.zip *.txt
$ zip file.zip *.txt
フォルダ圧縮
$ zip -r my.zip target-dir
圧縮ファイルに除外ファイルを指定
$ zip file.zip target-files -x *.log*
$ zip file.zip target-files -x file1 file2
$ zip file.zip target-files -x file1 file2
解凍
$ unzip my.zip
Sponsored Link
- Relative Articles