DEV Community

Aravinthan
Aravinthan

Posted on

Linux - Compress Commands

Linux - Compress Commands

This is Part 7 of the Linux CLI Commands series.

πŸ‘‰ Previous: Linux - Link Commands
πŸ‘‰ Next: Linux - Root Commands

Compress Commands

zip,gzip,tar

zip newfilename file1 dir1 file2 -- compress the files and directory
unzip newfilename -- To unzip the file
gzip filename -- to compress the zip files
gunzip -- to unzip the gzip
tar -cvf -- to create a tar file eg: file.tar
tar -tcf -- to list a tar file
tar -xvf -- to extract a tar file
tar -cvzf -- to create a tar file and compress eg: file.tar.gz
tar -tczf -- to list a compressed tar file
tar -xvzf -- to extract a compressed tar file

Top comments (0)