- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: TAR TYPE FILE FORMAT
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
06-05-2010 01:46 PM
06-05-2010 01:46 PM
TAR TYPE FILE FORMAT
I having a file in my server
#file httpd.conf
file type: tar
how can i extract this file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2010 01:50 PM
06-05-2010 01:50 PM
Re: TAR TYPE FILE FORMAT
Verify
=======
#tar -tvf httd.conf
Extract
======
#tar -xvf httd.conf
Aneesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2010 08:33 PM
06-05-2010 08:33 PM
Re: TAR TYPE FILE FORMAT
I used same syntex what you have written:
#tar -xvf httpd.conf /tmp/apache/
but it does not give any output in that location
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2010 08:52 PM
06-05-2010 08:52 PM
Re: TAR TYPE FILE FORMAT
>> but it does not give any output in that location
Is it a empty tar file ?
Post the output of the "#tar -tvf httd.conf" command.
Lets see how many files the tar file has.
Regards,
Murali
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2010 09:04 PM
06-05-2010 09:04 PM
Re: TAR TYPE FILE FORMAT
> #tar -xvf httpd.conf /tmp/apache/
It's not the same syntax when you add things
to the command line. Especially when you
don't understand the command's syntax.
man tar
> but it does not give any output in that
> location
Perhaps because that's not how one specifies
a destination to "tar".
> #tar -tvf httd.conf
That was a pretty reasonable suggestion.
Perhaps you should try it.
"httpd.conf" is not a typical name for a
"tar" archive. Have you tried looking at the
file using something like a text editor?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2010 10:19 PM
06-05-2010 10:19 PM
Re: TAR TYPE FILE FORMAT
What were you attempting to do with this syntax?
This will extract the directory tree /tmp/apache/, if it is on the archive.
But I'm not sure what that trailing "/" will do to it?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2010 01:18 PM
06-06-2010 01:18 PM
Re: TAR TYPE FILE FORMAT
> "/" will do to it?
Around here, with HP "tar", it seems to
defeat the usual functionality:
dyi # tar tfv ta.tar
rwxr-xr-x 0/3 0 Jun 6 05:47 2010 /tmp/apache/
rw-r--r-- 0/3 5 Jun 6 05:47 2010 /tmp/apache/fred
dyi # tar xfv ta.tar /tmp/apache
x /tmp/apache/fred, 5 bytes, 1 tape blocks
dyi # tar xfv ta.tar /tmp/apache/
dyi #
(Interestingly, there's no mention of
"restoring" "/tmp/apache" itself.)
GNU "tar" does better with the "/":
dyi # gtar xfvP ta.tar /tmp/apache
/tmp/apache/
/tmp/apache/fred
dyi # gtar xfvP ta.tar /tmp/apache/
/tmp/apache/
/tmp/apache/fred
(And it does mention the directory itself.)
dyi # uname -a
HP-UX dyi B.11.31 U ia64 4235313755 unlimited-user license
dyi # gtar --version
tar (GNU tar) 1.22
[...]
What's "-P"?
http://www.gnu.org/software/tar/manual/tar.html#SEC118
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2010 01:31 PM
06-06-2010 01:31 PM
Re: TAR TYPE FILE FORMAT
someone):
dyi # pax -rv -f ta.tar /tmp/apache
USTAR format archive
/tmp/apache/
/tmp/apache/fred
dyi # pax -rv -f ta.tar /tmp/apache/
USTAR format archive
/tmp/apache/
dyi #