Useful shortcuts for vi editor

Monday 16 December 2019

unzip vs gunzip

e.g. using unzip and gunzip tools for extracting the zip files

* example.txt file compressed into example.zip file

-> Listing contents of the zip file
$ unzip -l example.zip
gunzip -l example.zip

-> Extracting the zip file
$ unzip example.zip
gunzip -S .zip -c example.zip > example.txt

-> Extracting the zip file to specified directory
unzip example.zip -d /home/alper
gunzip -S .zip -c example.zip > /home/alper/example.txt