tar create gzip archive example Example: how to tar tar -czvf name-of-archive.tar.gz /path/to/directory-or-file