Tag: zip

  • zip

    To install zip on Ubuntu/Debian, run

    apt install zip unzip -y
    

    To unzip a file, run

    unzip FILE_NAME.zip
    

    To unzip to specific directory, run

    unzip FILE_NAME.zip -d DIR_NAME
    

    Create a ZIP file

    To create a ZIP file, run

    zip -r FILE.zip FILE_OR_DIR
    

    Example

    root@server:~# zip -r 1.zip organicinstinct.sql 
      adding: organicinstinct.sql (deflated 85%)
    root@server:~#