how to make a tar code example Example: how to tar tar -czvf name-of-archive.tar.gz /path/to/directory-or-file