Thursday, April 23, 2015

to compress files became .gz file use gzip file_name.sql


It’s as simple as this:

$ gunzip big-database-dump.sql.gz
$ ls big-database-dump.sql

(The ls command simply lists the extracted file, by the way)

If you’re using Ubuntu, there’s a very easy way to extract the file using the GUI – simply browse to the .gz file you want, right click on it and choose the Extract here command.

However, the time to use the tar command is when you’re opening up a file like drupal-6.15.tar.gz

tar -zxvf Drupal-6.15.tar.gz

Hope this helps out other Ubuntu/Linux newbies who’ve struggled with file decompression!

0 komentar:

Post a Comment

My Blog List