create tar with multiple directories in a directory code example Example: how to tar linux tar -zcvf file.tar.gz /path/to/dir/