• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

unZip at Command Prompt

onyxchase

Active member
#1
Is there a way to easily unZip the package at command line with auto-overwrite all files? It takes forever to upload all the files one by one. :)

Thanks in advance! ;)
 

Deebs

Well-known member
#2
It all depends on the OS that your server is running. If Windows and you have RDP access then you can simply use the inbuilt unzipper (if 2003 onwards), if Linux, then you would need to install the necessary package that contains unzip and have shell access.
 

Dean

Well-known member
#5
I generally put the .zip file in the root directory (above public_html) then simply "uzip filename.zip" via ssh. That creates a upload directory above root with the unzipped files, and a few in the root, then I move the files to the proper places via cpanel file manager.
 

Dean

Well-known member
#7
Is it possible to unzip package through the FTP software?
I don't have cPanel nor command access. :(
I have never heard of the ability to unzip via ftp. There is an unzip command in cpanel, but if you don't have that.. not sure what to tell you.
 

onyxchase

Active member
#8
Is it possible to unzip package through the FTP software?
I don't have cPanel nor command access. :(
No. But it might be possible to unzip via PHP via exec command, but I believe the destination folder has to be CHMOD 777 which you'd have to unzip in a new folder and move the files I believe.

PHP:
<? exec("unzip blah.zip"); ?>