[ubuntu-in] How to re-compact a .gz folder once I extract it?

Arpan arpanfoross at gmail.com
Wed Mar 18 15:32:55 GMT 2009


suranjan jii wrote:
> Hello all,
> I have successfully set up SCIM as well as the Hindi aspell 
> spell-checker to work with it. Now I just need to open the main Hindi 
> word list (of the spellchecker) in order to edit it. That word list is 
> in the file "hi.cwl.gz". I can use archive manager to extract it to 
> hi.cwl, and from there I know how to open it and edit it, and then I 
> just need to know what is the command to recreate the hi.cwl.gz from 
> hi.cwl. If someone can tell me this command (to go from hi.cwl to 
> hi.cwl.gz), then I will be able to do my work.
>
> Thanks!
>
> Suranjan
> Buxar, Bihar
If you are using Ubuntu(Gnome) then follow the steps mentioned below.

1. Open Nautilus File Manager and browse to the folder which contains 
the file hi.cwl
2. Right click on it and select "Create Archive" from the menu.
3. Change the archive type/extention from default "tar.gz" to ".gz".
4. Click create.

A new .gz file will be created.
--

Alternatively you can use "gzip" command to create a .gz archive. Use 
terminal and change to the directory where your file hi.cwl is located 
and then give below command.

$ gzip -v hi.cwl

Option "-v" is for verbose output. However using gzip command replaces 
your original file with the newly created .gz archive.



Arpan



More information about the ubuntu-in mailing list