Extract Compressed Files

Extract Compressed Files

Posted by: campsoup
Posted on: 2006-10-04 16:03:00

Sorry for the newbie post, but I'm use to CPanel.

How can I extract .gz, .tar, .zip, and .tar.gz files on my DreamHost server? I don't understand how to do it from an ftp client application command line or through the web-based tools that come with the hosting account.

Thanks,
Sean

Re: Extract Compressed Files

Posted by: hcarty
Posted on: 2006-10-04 17:22:00

The commands you need are gunzip, tar and unzip. You use them from a ssh connection.

Some examples:

gunzip some.file.gz
tar xvf some.file.tar
tar xvzf some.file.tar.gz
unzip some.file.zip

For more information on the commands, you can type:

man gunzip
man tar
man unzip

or search about on Google.

I hope this helps!

Re: Extract Compressed Files

Posted by: rlparker
Posted on: 2006-10-04 17:44:00

hcarty pointed you in the right direction in explaining which shell commands to use to extract your compressed files. However, if you are used to cpanel, you will need to learn how to connect to and become acquainted with the *nix shell. You use an ssh client to do this, as opposed to using ftp or "Panel based" tools.

This Dreamhost Wiki page intoducing the shell is a good place to start. Pay special attention to the links at the bottom of the article for additional information about connecting to the shell via ssh (instead of an ftp client), common commands to use when connected to the shell, and making sure your account has shell access enabled.

While these things may seem daunting at first, you will find the time you spend in learning how to operate in the shell is well worth the investment, as using shell tools on occasion can make you life managing webspace *much* easier in many ways. Once you have had a taste of the kind of flexibility and power the shell affords, you will most likely not want to be limited to cpanel againwink Good luck!

--rlparker

Tags: tar gzftp clientdreamhostaccount thankscpanelnewbiehosting