The procedure to create a tar.gz file on Linux is as follows:
- Open the terminal application in Linux
- Run tar command to create an archived named file.tar.gz for given directory name by running: tar -czvf file.tar.gz directory
- Verify tar.gz file using the ls command and tar command
tar -czvf file.tar.gz directory