Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CentOS 6 unzip file but files are going to root folder instead

When I did

unzip /var/www/html/web.zip 

It unzipped the zip to /root/ folder. I need it to unzip the files to /var/www/html/

why is it happening?

CentOS 6.3 64bit

like image 569
Jony kale Avatar asked Nov 28 '22 16:11

Jony kale


1 Answers

try this:

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

your command extracts the archive content to the current directory. you can check if your in /root using the following command

pwd
like image 157
Milad.Nozari Avatar answered Dec 05 '22 21:12

Milad.Nozari