Linux - General This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
11-18-2004, 11:43 AM
|
#1
|
Senior Member
Registered: Jul 2004
Location: Germany
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
Last edited by Gins; 11-18-2004 at 11:49 AM.
|
|
|
11-18-2004, 11:50 AM
|
#2
|
Senior Member
Registered: Oct 2003
Location: hopefully not here
Distribution: Gentoo
Posts: 2,038
Rep:
|
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
|
|
|
11-18-2004, 12:10 PM
|
#3
|
Senior Member
Registered: Jul 2004
Location: Germany
Distribution: open SUSE 11.0, Fedora 7 and Mandriva 2007
Posts: 1,662
Original Poster
Rep:
|
I am using Mandrake 10.0 free version. I downloaded it from a site.
The gzip command works not the compress command.
The following is my path. Could you detect some strange aspects in the path?
[heden@h148n2fls301o1037 heden]$ echo $PATH
/usr/bin:/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin/:/usr/games:/home/heden/bin
|
|
|
11-18-2004, 12:44 PM
|
#4
|
Member
Registered: Oct 2004
Location: Brooklyn
Distribution: Slackware 15;
Posts: 457
Rep:
|
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).
|
|
|
11-19-2004, 01:00 PM
|
#5
|
Senior Member
Registered: Jul 2004
Location: Germany
Distribution: open SUSE 11.0, Fedora 7 and Mandriva 2007
Posts: 1,662
Original Poster
Rep:
|
The following is the answer from the whereis command. As you see it does not tell me the location.
[heden@h65n2fls301o1037 heden]$ whereis compress
compress:
|
|
|
11-19-2004, 02:05 PM
|
#6
|
Member
Registered: Oct 2004
Location: Brooklyn
Distribution: Slackware 15;
Posts: 457
Rep:
|
Actually it gave you the answer...compress does not exist on your system. If it did, whereis would have told you its location!.
|
|
|
All times are GMT -5. The time now is 10:05 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|