7z unzip 하는 방법
먼저 p7zip 패키지를 설치해야 한다.
sudo apt-get install p7zip
압축해제하는 방법
$ 7zr e myfiles.7z 7-Zip (A) 9.04 beta Copyright (c) 1999-2009 Igor Pavlov 2009-05-30 p7zip Version 9.04 (locale=C,Utf16=off,HugeFiles=on,1 CPU) Processing archive: ../../myfiles.7z Extracting myfiles/test1 Extracting myfiles/test2 Extracting myfiles/test Extracting myfiles Everything is Ok Folders: 1 Files: 3 Size: 7880 Compressed: 404
압축하는 방법
$ 7zr a myfiles.7z myfiles/ 7-Zip (A) 9.04 beta Copyright (c) 1999-2009 Igor Pavlov 2009-05-30 p7zip Version 9.04 (locale=C,Utf16=off,HugeFiles=on,1 CPU) Scanning Creating archive myfiles.7z Compressing myfiles/test1 Compressing myfiles/test2 Everything is Ok
rar 압축해제 하는 방법
unrar x php-pastebin-2.1.rar ~/public_html/root/php-pastebin
tar 압축 잘못 푼것 전부 지우기
tar tf sc_serv2_linux_09_09_2014.tar.gz | sort -r | while read file; do if [ -d "$file" ]; then rmdir "$file"; else rm -f "$file"; fi; done