Amazon Prime Day August 2020

LInux ZIP compression cmds


Zip a specific folder

zip -r {zip_filename.zip} {source_dir} 
E.g:zip -r backup-$(date +%Y-%m-%d-%H.%M.%S).zip project1


Extract zipped file

unzip {zip_filename.zip}
E.g: unzip states.zip


Unzip file to specific folder

unzip {zip_filename.zip} -d {destination_path}
E.g: unzip states.zip -d /var/www/html

Post a Comment

0 Comments