LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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


Reply
  Search this Thread
Old 11-18-2004, 11:43 AM   #1
Gins
Senior Member
 
Registered: Jul 2004
Location: Germany
Distribution: open SUSE 11.0, Fedora 7 and Mandriva 2007
Posts: 1,662

Rep: Reputation: 47
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.
 
Old 11-18-2004, 11:50 AM   #2
SciYro
Senior Member
 
Registered: Oct 2003
Location: hopefully not here
Distribution: Gentoo
Posts: 2,038

Rep: Reputation: 51
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
 
Old 11-18-2004, 12:10 PM   #3
Gins
Senior Member
 
Registered: Jul 2004
Location: Germany
Distribution: open SUSE 11.0, Fedora 7 and Mandriva 2007
Posts: 1,662

Original Poster
Rep: Reputation: 47
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
 
Old 11-18-2004, 12:44 PM   #4
apolinsky
Member
 
Registered: Oct 2004
Location: Brooklyn
Distribution: Slackware 15;
Posts: 457

Rep: Reputation: 48
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).
 
Old 11-19-2004, 01:00 PM   #5
Gins
Senior Member
 
Registered: Jul 2004
Location: Germany
Distribution: open SUSE 11.0, Fedora 7 and Mandriva 2007
Posts: 1,662

Original Poster
Rep: Reputation: 47
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:
 
Old 11-19-2004, 02:05 PM   #6
apolinsky
Member
 
Registered: Oct 2004
Location: Brooklyn
Distribution: Slackware 15;
Posts: 457

Rep: Reputation: 48
Actually it gave you the answer...compress does not exist on your system. If it did, whereis would have told you its location!.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I compress Amigo? s_deepak_123 Amigo 1 02-03-2005 01:34 AM
Linux Compress Ameii83 Linux - General 8 12-23-2004 09:17 PM
compress fs alaios Linux - General 5 09-07-2004 09:29 PM
compress Ownasaurus Linux - Software 4 09-12-2003 08:17 PM
Does CPIO compress? severedhead Linux - Software 1 08-03-2002 08:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:05 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration