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

unZip at Command Prompt

Discussion in 'XenForo Questions and Support' started by onyxchase, Mar 8, 2011.

  1. onyxchase

    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! ;)
  2. Deebs

    Deebs Well-Known Member

    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.
  3. Avensen

    Avensen Member

    unzip -o archivename.zip
    command if running Unix/Linux - based OS
    onyxchase likes this.
  4. onyxchase

    onyxchase Active Member

  5. Dean

    Dean Well-Known Member

    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.
  6. Veer

    Veer Well-Known Member

    Is it possible to unzip package through the FTP software?
    I don't have cPanel nor command access. :(
  7. Dean

    Dean Well-Known Member

    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.
  8. onyxchase

    onyxchase Active Member

    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.

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

Share This Page