The tar command is used to combine multiple files into a single archive (often compressed with gzip).
Creating a Tar Archive
- Open your terminal.
- Type
tar -czvf backup.tar.gz /folder/to/compress. ccreates the archive,zcompresses it with gzip,vmakes it verbose (shows progress), andfspecifies the filename.- Press Enter to create the archive.