How to Create .tar.gz Archive Using Terminal on Ubuntu 18.04 LTS?<br /><br />Step 1: Go to the Terminal, and then right click on it. Click on 'Open Terminal.'<br /><br />Step 2: To Create type the command below:-<br /><br /> sudo tar -czvf name_of_archive.tar.gz path_to_Directory_or_file <br /><br /><br /> If you have more than one files or directories that you want to compress, use command below:-<br /><br /> <br /> sudo tar -czvf name_of_archive.tar.gz path_to_Directory_1_or_file_1 path_to_Directory2_or_file_2 and so on. <br /><br /><br /> c: It tells tar to create an Archive.<br /> <br /> z: It tells the tar command to compress the archive using gzip.<br /><br /> v: It is verbose, it displays progress in the terminal while creating an archive.<br /><br /> f: It allows you to specify the filename of the archive.<br /><br /><br />Step 3: After typing, Hit Enter key on the keyboard, and your .tar.gz file will be created.<br /><br /><br />It's done<br /><br /><br />Thanks for watching, please like and subscribe <br /><br />==============================================<br /><br />https://www.facebook.com/HowtoTutorialsByAmit/