Common linux system commands - compress command

### zip (to retain the original file) can not be compressed folders
zip file.zip file1 file2 zip file
unzip file.zip extract the compressed file

### tar (not to retain the original file)
tar -cjf file.tar.bz2 file1 file2 compressed
tar -czf file.tar.gz file1 file2 compressed
tar -xvf decompression (Universal)

Guess you like

Origin www.cnblogs.com/chenlulu1122/p/11888597.html