zip
To install zip on Ubuntu/Debian, run
1 |
apt install zip unzip -y |
To unzip a file, run
1 |
unzip FILE_NAME.zip |
To unzip to specific directory, run
1 |
unzip FILE_NAME.zip -d DIR_NAME |
Create a ZIP file
To create a ZIP file, run
1 |
zip -r FILE.zip FILE_OR_DIR |
Example
1 2 3 |
root@server:~# zip -r 1.zip organicinstinct.sql adding: organicinstinct.sql (deflated 85%) root@server:~# |