create tar.gz linux command line of folder and move to another code example Example: how to create tar file to another directory tar czf /var/www/file.tar.gz file1