To zip a folder and it's contents recursively :
$ zip -r -q filename.zip foldername (enter)
To extract a .zip file :
$ unzip -q filename.zip (enter)
To extract a .tar.gz file :
$ tar xzf filename.tar.gz (enter)
To extract a .tar.xz file :
$ tar -xf filename.tar.xz (enter)
Source :
https://stackoverflow.com/questions/31982099/zip-and-unzip-a-directory-and-its-file-in-linux
http://gnuwin32.sourceforge.net/
https://stackoverflow.com/questions/18180060/how-to-zip-a-file-using-cmd-line
Comments
Post a Comment