CentOSでファイルを圧縮、解凍する

1.tarファイルをアーカイブ
#tar cvf sample.tar file1 file2

ディレクトリをアーカイブ
#tar cvf sample.tar dir1 dir2

tarファイルを展開
#tar xvf xxx.tar
2.gzファイルを圧縮
# gzip -v file1 file2

ディレクトリを圧縮
# gzip -rv dir1 dir2
3.lzhファイル
lzhファイルを圧縮
#lha -c sample.lzh file1 file2

ディレクトリを圧縮
#lha -c sample.lzh dir1 dir2

IOS

Posted by arkgame