How to Compress File or Folder on Ubuntu Using tar Command

To compress the file or folder, you can use tar command:
# tar -xzvf filename.tar.gz filename

Result :

Comments