How to tar.gz a directory August 3, 2022 .tar.gz linux [linux] Command to tar.gz a file or directory recursively: tar -czvf outputfile.tar.gz directory