A colleague of mine asked about extracting the contents of a compressed tarball into a particular directory. I suggested downloading the tarball into the /tmp directory. It was a fairly large tarball consisting of several hundred megabytes. Here's an example of what was done.
#cd /tmp
#zcat compressed_tarball.Z | (cd /export/opt; tar xvfp -)
This blog covers Unix system administration HOWTO tips for using inline for loops, find command, Unix scripting, configuration, SQL, various Unix-based tools, and command line interface syntax. The Unix OS supports tasks such as running hardware, device drivers, peripherals and third party applications. Share tips/comments. Read the comments. But most importantly: Read Disclaimer - Read Disclaimer.
Subscribe to:
Post Comments (Atom)
3 comments:
you can also use -C destination_folder option to tar. It's more efficient especially if the file is large because it doesn't have to pipe
tar xvpf your_Tarball.Z -C /export/opt
mihai,
Thanks for sharing that tip with this community blog.
Post a Comment