Showing posts with label Linux. Show all posts
Showing posts with label Linux. Show all posts

Sunday, January 15, 2017

How To Compress An Files On Windows or Linux

It's not really hard to archived your files into an compressed files like .zip, .rar, or .tar.gz you may also don't need an software to compress an .zip files, because if you're an windows user then you can actually compress it by just right clicking on the files and then click Send to > Compressed (zipped) folder and then it will compress the files, and even you also can open compressed (zipped files) without any software as compressed folder.

If you are Linux user then probably you should use the most used compression type called tar or tar.gz, you can compress your files by typing on console
tar -zcvf name-of-archive.tar.gz /path/to/directory-or-file
you can compress multiple files at once by typing
tar -zcvf archive.tar.gz /usr/local/gta /usr/public/minecraft /home/test/file1.txt /home/test/file2.txt
if you don't put parameters at the end of the extension of a files like .txt or .exe, that mean you the console will compress/archive the whole files in the folder