how to make tar file of folder with command in linux code example Example: how to tar linux tar -zcvf file.tar.gz /path/to/dir/