tar -czvf
Create a compressed gzip archive. Combines multiple files/folders into a single compressed file.
Primary Syntax
$ tar -czvf archive.tar.gz folder/
#
Example Usage
tar -czvf backup.tar.gz /home/user/
tar -cvf archive.tar folder/#
Quick Tips
• Use man tar to read the full manual
• Add --help flag for quick options reference
• Combine with | less for paginated output
Submitted by: admin
Added: 2/9/2026