1851688 Members
2370 Online
104061 Solutions
New Discussion

Re: uncompress

 
SOLVED
Go to solution
Madhu_17
Regular Advisor

uncompress

Hello,

I have small query.. I want to uncompress a .Z file. I don't have sufficient space in my filesystem. In anothe rfilesystem i have sufficient space. How to go about

1) How to uncompress and save the output file in the same directory, temporarily using the space of other filesystem?
2) how to uncompress a file and saving the output to a different filesystem using temporary space of other filesystem only?

Thanks
7 REPLIES 7
RAC_1
Honored Contributor

Re: uncompress

1. I do not think this is possible.
2. uncompress "file" > /other_fs/uncompressed_file.
There is no substitute to HARDWORK
Muthukumar_5
Honored Contributor
Solution

Re: uncompress

Try as,

# zcat > //filename

hth.
Easy to suggest when don't know about the problem!
Arunvijai_4
Honored Contributor

Re: uncompress

You can try as,

#uncompress > //file_name>

#compress -f > //file_name>

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Muthukumar_5
Honored Contributor

Re: uncompress

1) You may be done by creating a symbolic link to another file system file.

Example:

/tmp/test/file.Z

You are going to uncompress file.Z within /tmp/test file then,

create a file as,

# ln -s /file1 file.log
# zcat file.Z > file.log

file.log will use only 13 or 12 byte space.

2) you can achive by redirecting output to another file system file (as said in prev post).

hth.
Easy to suggest when don't know about the problem!
Madhu_17
Regular Advisor

Re: uncompress

Hello All,

Thanks for all your replies.

Before posting the query itself, i have tried the below option without any luck.

uncompress > //file_name>

I will try other options and let you know.
Muthukumar_5
Honored Contributor

Re: uncompress

can you try as,

uncompress >| //file_name>

may be a change of noclobber enabled.

Are you getting error messages more. post that.

hth.
Easy to suggest when don't know about the problem!
Madhu_17
Regular Advisor

Re: uncompress

Thanks all for great response.

below command did the trick.

# zcat > //filename