compress in linux


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users compress in linux
# 1  
Old 11-04-2003
compress in linux

hi
i need to use compress command in redhat8, it's not there

please help


regards
# 2  
Old 11-04-2003
as an alternative, try using gzip as this should work just the same. I beleive that gunzip will also uncompress files compressed with the program compresss (Im sure I will be corrected if I am wrong Smilie )
# 3  
Old 11-04-2003
gzip will work but i need to use compress because i'll transfer the compressed files to unix system using uncompress command
# 4  
Old 11-04-2003
I dont understand what you mean when you say that you will transfer the files using the uncompress command. Can you elaborate? In general, using gzip, compress and zcat should all work the same to compress a file while their complement to uncompress a file is gunzip, uncompress, and zcat, respectively.
# 5  
Old 11-05-2003
omran,

As I know, 'compress' command might not found in Linux. As google's suggestion, you may use 'gzip' to do you job because most of unix systems contain this command.
# 6  
Old 11-05-2003
hi
this is what i meant

i transfer compressed files from linux to unix system

the scripts in the unix system (which treat these files) contains the uncompress command

so if i use gzip (in linux) i will not be able to uncompress it in the other system (unix)

regards
# 7  
Old 11-05-2003
omran, you have two choices here...

You could add compress to your linux system. If you do that SCO might sue you.

You could add gunzip to your unix system. It is free software. No chance of a lawsuit here.

Still can't decide? Here's some more info...

gzip/gunzip uses a better compression algorithm than compress/uncompress.

Major unix systems like hp-ux and sunos have free software sites. They will have gzip/gunzip precompiled and ready to install. And we can probably help if you encounter any problems getting gzip/gunzip on your unix system.

You will need to get the source code to compress somewhere and port it yourself to linux. Between the facts that compress is lame and SCO is aggressively claimly ownership, you won't find much support along that path.

But the decision is yours. Let us know which way you decide to go. Smilie
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. HP-UX

[Solved] how to compress and uncompress the files beween HP UX and Linux OS

I have file with large size in HP-UX os. I need to compress on HP-UX and ftp to linux server and i need to uncompress the files. How can i do this? Any help is highly appreciated.. (3 Replies)
Discussion started by: govindts
3 Replies

2. UNIX for Dummies Questions & Answers

Issue: Compress in unix server and FTP to windows and open the compress file using Winzip

Hi All ! We have to compress a big data file in unix server and transfer it to windows and uncompress it using winzip in windows. I have used the utility ZIP like the below. zip -e <newfilename> df2_test_extract.dat but when I compress files greater than 4 gb using zip utility, it... (4 Replies)
Discussion started by: sakthifire
4 Replies

3. UNIX for Dummies Questions & Answers

gzip instead of compress

Duplicate threads merged jmc Hi, I have a script wherein I want to use gzip instead of compress. # cat dly_appsfiles_bkp.ksh # # dly_appsfiles_bkp.ksh # date_stamp=`date +%m%d%y` base_dir=/u05/gld1 sub_dir=apps bkp_dir=/u00/backup/GLD1/APPS... (5 Replies)
Discussion started by: narayanv
5 Replies

4. UNIX for Dummies Questions & Answers

Copy and compress

Is there a way to copy a file and compress it at the same time? I realize the file can be copied and then compressed, but I was wondering if it's possible to do it in a one-line command and for that matter, if it would be more efficient to perform the operation with a one-line command? Thanks. (5 Replies)
Discussion started by: here2learn
5 Replies

5. UNIX for Dummies Questions & Answers

Need help to compress

People i have files.arc i need to compress one by one...but they need to have the same date for example jan 30 1234.arc jan 30 12334.arc jan 30 rejrne.arc jan 30 e423e4.arc jan 30 afdhnfhd.arc jan 31 aresdfds.arc I need to compres the jan 30 .arc only thank you very much (1 Reply)
Discussion started by: enkei17
1 Replies

6. UNIX for Dummies Questions & Answers

Compress files

Hi All, I would like to archive some of the scripts below(USFINUM042006_01.CSV USFINUM042006_02.CSV and USFINUM042006_03.CSV )and also use a wildcard e.g. <command> USFINUM*.CSV. Also there are a lot of similar files but I want only the three latest files to be compressed. Which is the best... (3 Replies)
Discussion started by: indira
3 Replies

7. Shell Programming and Scripting

is there a way to achieve this with compress?

I'm trying to figure out how I can get an equivalent output to a text file such as if I use gunzip -l filename in that gunzip will output the previous file size and the compressed size and the ratio... is there a way to achieve this with compress and zip? i am very new at shell... (3 Replies)
Discussion started by: nortypig
3 Replies

8. UNIX for Dummies Questions & Answers

[help] Cant compress file

Anybody know what happened here? 162 lab2-36:~/try_direct/another> compress url.txt url.txt: -- file unchanged (8 Replies)
Discussion started by: endeavour1985
8 Replies

9. UNIX for Advanced & Expert Users

Details of compress -b

Hello. Can any1 help me with the compress command. The -b option takes the number of bits used for encoding. can u expalin why this number of bits is used and for what purpose. what is the maximum number we can provide? In SFU these number has a valod range between 12 and 16 y?? (1 Reply)
Discussion started by: rahulrathod
1 Replies

10. UNIX for Dummies Questions & Answers

Compress in Unix

I tried Compress ; gzip and bzip . And they don't always compress files to small . Can someone tell me if there is any compress tool better than those ? thanks (1 Reply)
Discussion started by: Sasuke
1 Replies
Login or Register to Ask a Question