- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: tar xvf question
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
Discussions
Discussions
Discussions
Forums
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
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
тАО01-15-2004 08:28 AM
тАО01-15-2004 08:28 AM
eg: tar cvf /directory
and here is the structure of /directory/subdir1/sdir1
Is it possible to untar only contents of sdir1?
What is best way to do it ?
Thanks.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-15-2004 08:31 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-15-2004 08:34 AM
тАО01-15-2004 08:34 AM
Re: tar xvf question
To get only the subdir back you could go for:
The t to view.
tar tvf pipo.tar /directory/subdir1/sdir1
If it works
tar xff pipo.tar /directory/subdir1/sdir1
I can not test,
Gideon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-15-2004 08:35 AM
тАО01-15-2004 08:35 AM
Re: tar xvf question
tar xvf tar_file /blah/dir_name/*
keep in mind whether the tar file is relative or absolute.
i.e. tar cvf /myfile.tar /mydirectory will untar as /mydirectory
To keep things flexable always create the tarfile relative.
i.e. tar cvf myfile.tar ./mydirectory
use tar vtf myfile.tar to list exactly how the tar file was created.
Luck
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-15-2004 08:37 AM
тАО01-15-2004 08:37 AM
Re: tar xvf question
i.e. tar vtf myfile.tar /sub/directory/file*
wont work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-15-2004 08:42 AM
тАО01-15-2004 08:42 AM
Re: tar xvf question
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=17465
Take a look at Cheryl's advice.
Kind regards,
Robert-Jan