- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: UNCOMPRESS Command
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-19-2000 09:02 PM
10-19-2000 09:02 PM
UNCOMPRESS Command
This is similar to my earlier Question which is wrngly posted in Database Category.
Problem
I got a file abc.tar.Z file in mount point. I don;t have sufficient space to compress the same in that mount point.
I would like to uncompress this file, so that uncompressed file will be in some other mount point.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-19-2000 09:39 PM
10-19-2000 09:39 PM
Re: UNCOMPRESS Command
Simply use the -c flag which forces writing
to standard output. Ni files are changed.
Example:
uncompress -c abc.tar.Z > /home/new.tar
Dan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-19-2000 10:09 PM
10-19-2000 10:09 PM
Re: UNCOMPRESS Command
you could also do:
zcat abc.tar >/newdir/abc.tar
(Note you can leave the .Z extension because zcat recognizes this automatically)
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-19-2000 11:22 PM
10-19-2000 11:22 PM
Re: UNCOMPRESS Command
this will not change the source file name (file.tar.Z).
you can just output the stdout to file.
test1> uncompress -c test.tar.Z > ../test.tar
/> ll test.tar
the source file still in compressed format and you
will get the uncompressed format file in different dir.
Hope this helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2000 10:52 AM
10-20-2000 10:52 AM
Re: UNCOMPRESS Command
zcat abc.tar.Z | tar xvf -
The zcat will uncompress the tar file to standard out, Pipe this to tar. The -f - will take the tar image from standard in.
Good luck.