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