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