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
0 Comments