How to create Tar.gz file using Command line

Create Tar files from the command line :

– Login to your server with SSH / Telnet to the web server

– Change to the directory where you want to create tar file.

– run command:

tar -zcvf TAR_FILE_NAME.tar.gz SOURCE_FOLDER_NAME

replace TAR_FILE_NAME.tar.gz with the name you want create tar file and replace SOURCE_FOLDER_NAME with file or folder

Was this post helpful?
Let us know if you liked the post. That’s the only way we can improve.
Yes0
No0
Harinder Singh

Harinder Singh

My name is Harinder Singh and I specialize in Software industry. I consider myself as a life learner. I love learning new concepts, embracing new ideas and reading and searching for innovation.