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
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
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
Do:
cd /var/www/html/
unzip web.zip
To learn more about unzip, you can try running below command. this will return you all options possible with unzip
unzip -man