linux terminal compress folder code example Example: linux compress folder tar -zcf archive-name.tar.gz foldername