ubuntu create zip



  • I want a zip archive on the servere. I know how to create, but I just need to create zip on a specific rather than an investment.

    now creates zip with investment as /var/www/html/site/files, and I need only /files



  • Set.

    $ sudo apt install zip unzip
    

    Let's go to the right file.

    $ cd /var/www/html/site/
    

    We're archiving the right file with the right name.

    $ zip -r files.zip files
    

Log in to reply
 

Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2