Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: open SUSE 11.0, Fedora 7 and Mandriva 2007
Posts: 1,662
Rep:
Compress
I created a text file called rubbish.
I tried to compress it merely by writing thé compress command. I thought it would give me a compressed file called rubbish.Z
It did not work. What is the reason?
The following are the results of the commands. It is a plain text file I wrote.
[heden@h148n2fls301o1037 heden]$ file rubbish
rubbish: ASCII English text
[heden@h148n2fls301o1037 heden]$ compress rubbish
bash: compress: command not found
I wrote the gzip command and worked beautifully.
It created a file called rubbish.gz
you don't have the command "compress" in your PATH, most likely it isn't installed at all for legal reasons
use gzip (compress like, meant to replace it, as compressed was trapped in patents, making it illegal to create compress program in open source ... not that it stopped people)
also bzip2 is another good alternative, it compresses better then gzip, not is not as widely used (most modern distros have support for bzip2, but windows is lacking in this area ... tho if you can stomack msdos , there are utils to handle bzip2's in windows
Compress is an older compression utility written for unix. Linux generally uses gzip or bzip. If you are looking for a command you might try locate (command) or whereis (command).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.