# uncompress

**URL:** <https://community.unix.com/t/uncompress/166989>\
**Category:** UNIX for Advanced & Expert Users\
**Created:** [November 20, 2006, 4:25am UTC](https://community.unix.com/t/uncompress/166989 "2006-11-20T04:25:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![big123456](https://community.unix.com/letter_avatar/big123456/32/5_5575768a8748004e209b776fc1b2916d.png) [@big123456](https://community.unix.com/u/big123456)\
**Post date:** [November 20, 2006, 4:25am UTC](https://community.unix.com/t/uncompress/166989/1 "2006-11-20T04:25:40Z")

</div>

Hi All,  
is it possible to uncompress on another directory ? At the moment I have my file to uncompress on /u07 that has 5GB free. When uncompressed it would be more then 6G , I want to send uncompressed file on another directory where I have more free space. is it possible ? How ?  
Many thanks before.

---

<div class="post-metadata">

**Author:** ![matrixmadhan](https://community.unix.com/letter_avatar/matrixmadhan/32/5_5575768a8748004e209b776fc1b2916d.png) [@matrixmadhan](https://community.unix.com/u/matrixmadhan)\
**Post date:** [November 20, 2006, 5:57am UTC](https://community.unix.com/t/uncompress/166989/2 "2006-11-20T05:57:25Z")

</div>

As of I know its not possible to uncompress a file in another directory.  
File would be uncompressed to the current directory from which it is run.

Better option would be to move the uncompressed file into the mount(directory) where enough space is available and then to proceed with uncompressing.

There could be other good solutions too !!! ...

---

<div class="post-metadata">

**Author:** ![grial](https://community.unix.com/user_avatar/community.unix.com/grial/32/379_2.png) [@grial](https://community.unix.com/u/grial)\
**Post date:** [November 20, 2006, 10:42am UTC](https://community.unix.com/t/uncompress/166989/3 "2006-11-20T10:42:38Z")

</div>

uncompress -c /u07/file.Z \> /new/path/file

---

<div class="post-metadata">

**Author:** ![matrixmadhan](https://community.unix.com/letter_avatar/matrixmadhan/32/5_5575768a8748004e209b776fc1b2916d.png) [@matrixmadhan](https://community.unix.com/u/matrixmadhan)\
**Post date:** [November 20, 2006, 11:42pm UTC](https://community.unix.com/t/uncompress/166989/4 "2006-11-20T23:42:55Z")

</div>

thats a good one ! 🙂🙂🙂

another alternative is,  
using zcat equivalent to uncompress -c
