Create .tar.gz compress file

In Linux of any OS, slackware, ubuntu and many more there is one type of compressed file called tar.gz file. It is similar to zip. Well, we can install zip in linux too but tar.gz is the common one. For now I will introduce the tar.gz compress method by doing it in terminal.
So open your terminal and do something like this.
#tar -cvzf filecompress.tar.gz fileone.doc filetwo.doc folderone/ foldertwo/
That’s mean the filecompress.tar.gz will be created and consist of fileone.doc filetwo.doc and folder one and two.
It only happened with the option of tar, -cvzf. So try it.

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.