- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Question about UN-TAR files into different path
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
05-01-2007 06:26 PM
05-01-2007 06:26 PM
Question about UN-TAR files into different path
#tar -cvpf /tmp/a.tar /opt/sybase
Now I want to untar a.tar & extract the files into /opt/testing instead of /opt/sybase. Can anyone show me how to do it? Thanks a lot.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-01-2007 06:55 PM
05-01-2007 06:55 PM
Re: Question about UN-TAR files into different path
absolute path with "tar".
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1065980
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-01-2007 07:25 PM
05-01-2007 07:25 PM
Re: Question about UN-TAR files into different path
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-01-2007 07:53 PM
05-01-2007 07:53 PM
Re: Question about UN-TAR files into different path
GNU tar
http://gatekeep.cs.utah.edu/hppd/hpux/Gnu/tar-1.15.1/
or pax
http://docs.hp.com/en/B2355-60130/pax.1.html?jumpid=reg_R1002_USEN
Other threads:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=132348
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=179508
//forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=871569
Please read:
http://66.34.90.71/ITRCForumsEtiquette/after.html
Please also read:
http://forums1.itrc.hp.com/service/forums/helptips.do?#33
on how to reward any useful answers given to your questions.
So far you have only rewarded 49 of 181 answers !
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-01-2007 08:01 PM
05-01-2007 08:01 PM
Re: Question about UN-TAR files into different path
try:
cd /opt/sybase/
tar -cvpf /tmp/a.tar .
then
mkdir /opt/testing
cd /opt/testing/
tar -xvf /tmp/a.tar
also have a look at the pax command.
kind regards
yogeeraj