unZip at Command Prompt

onyxchase

Active member
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! ;)
 
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.
 
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.
 
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"); ?>
 
Top Bottom