How to unzip file in directory?

Discussion in 'Linux Beginners' started by pecka33, Oct 5, 2022.

  1. pecka33

    pecka33 Member

    Hello,

    i have a zip file in directory /var/www/clients/client0/xx/web/ The name of file is xy.zip
    I need to unzip this file in the same directory, in /var/www/clients/client0/xx/web/
    But i can not do this. I tried a lot of commands and does not works for me.

    For example i tried unzip xy.zip -d /var/www/clients/client0/xx/web

    I get just error unzip: cannot find or open xy.zip, xy.zip.zip or xy.zip.zip.ZIP.

    Any idea please? I tried more options.
     
  2. pecka33

    pecka33 Member

    Solved by
    unzip -d /var/www/clients/client0/xx/web /var/www/clients/client0/xx/web/xy.zip
     

Share This Page