I
I
IliaBrz2018-08-03 22:54:29
linux
IliaBrz, 2018-08-03 22:54:29

How to unzip a zip file to the right directory?

I have file /var/www/html/magento/magento.zip . How can I unzip it to /var/www/html/magento/ directory?
I tried to do it this way, but got an error:

[email protected]:~ $ unzip /var/www/html/magento/magento.zip /var/www/html/magento/
Archive:  /var/www/html/magento/magento.zip
caution: filename not matched:  /var/www/html/magento/

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Denis Verbin, 2018-08-03
@IliaBrz

The unzip directory must be passed with the -d argument .

unzip /var/www/html/magento/magento.zip -d /var/www/html/magento/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question