Decompress ZIP Archives via SSH


By Toni on November 27th, 2008 in Dreamhost, Tips & Tutorials, Webmaster

decompressing zips via sshUploading an entire site or script in a ZIP archive then decompressing via SSH is useful, time-saving, and increases your geek webmaster points by +5. Here’s how to do it:

First you need the right tools and setup: Start by making sure you have Shell access enabled for your domain. You are also going to need a SSH client — for Windows users we recommend PuTTY, it’s free. (For Mac or Unix check out this info on how to access SSH.)

Now take the ZIP file, and FTP it to the directory you want the files decompressed to. After it has finished uploading, run PuTTY. Enter the domain and use your FTP login and password to get in.

You will now see the [server]$ prompt, with [server] being the name of your server eg [sprite]$.
Now type the following:

[server]$ ls

- This will display a list of your directories.

Now type:

[server]$ cd subdomain.domain.com

- cd being the command to Change Directory. And subdomain.domain.com being the name of the directory you uploaded your ZIP file to.

Next enter:

[server]$ ls

You should see the name of the ZIP file you uploaded. Now enter:

[server]$ unzip yourfilename.zip

Depending on how many files are in the zip, it might take a while to finish. But, when it does you will have all your files decompressed, exactly where you wanted them. Fancy, eh?

Related posts:

  1. Vanilla 1.01 Install at DreamHost Create a new MySQL database from your Dreamhost web panel....
  2. Accessing Website Statistics at Dreamhost Q. Where are my stats on my Dreamhost account? A....
  3. Easy Custom Error Pages at DreamHost Making a custom error page with DreamHost is easy. DreamHost...
  4. Preventing Hotlinking via the Web Panel Hotlinking occurs when a website directly accesses, rather than links...
  5. How to Fix a Bad_httpd_conf Error Did you try to view your website but all you...


Tags:  

Subscribe and get $750 of webmaster freebies

  • $149 of discounts at DreamHost, HostGator & JumpLine
  • $320 free advertising at Yahoo!, Ask.com & more
  • Free trials for Mozy, WordTracker & dozens more

(We hate spam, and we'll never sell, rent or otherwise misuse your personal details - see our privacy policy)


Comments are closed.

Get Adobe Flash playerPlugin by wpburn.com wordpress themes