HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- One simple question about tar
Operating System - HP-UX
1834050
Members
2143
Online
110063
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
11-23-2000 05:46 PM
11-23-2000 05:46 PM
One simple question about tar
I just want to know how to extract certain dir of file from a .tar file.
i.e. tar xvf /dev/dat
This can extract the file from tape. But if I want to do the same thing from a tar file. i.e
tar xvf /tmp/abc.tar.
It doesn't work.
i.e. tar xvf /dev/dat
This can extract the file from tape. But if I want to do the same thing from a tar file. i.e
tar xvf /tmp/abc.tar
It doesn't work.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-23-2000 07:02 PM
11-23-2000 07:02 PM
Re: One simple question about tar
I just check this method, it is alright for .tar file. Maybe I make a misktake when inputing the cmd. Soory to disturb your all.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-23-2000 10:21 PM
11-23-2000 10:21 PM
Re: One simple question about tar
Hi,
The main difficulty when trying to extract a file with tar comes from the way the file is stored in the archive. ie absolute versus relative path.
To meke sure, first inventory your archive with 'tar tvf tarfile', search for your file name and use it as is in the 'tar xvf' command.
Dan
The main difficulty when trying to extract a file with tar comes from the way the file is stored in the archive. ie absolute versus relative path.
To meke sure, first inventory your archive with 'tar tvf tarfile', search for your file name and use it as is in the 'tar xvf' command.
Dan
Everybody knows at least one thing worth sharing -- mailto:dan.hetzel@wildcroft.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-24-2000 03:03 AM
11-24-2000 03:03 AM
Re: One simple question about tar
Yes, first take a look with tar tvf
then tar xvf file.tar
if is:
/tmp/dir tar extracts directory and files
/tmp/dir/ tar extracts only directory
file might no contain metacharacters (*,?)
then tar xvf file.tar
if
/tmp/dir tar extracts directory and files
/tmp/dir/ tar extracts only directory
file might no contain metacharacters (*,?)
unsupported
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP