- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: recovering a single file
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
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
тАО12-18-2009 02:51 AM
тАО12-18-2009 02:51 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-18-2009 02:54 AM
тАО12-18-2009 02:54 AM
Re: recovering a single file
man frecover
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-18-2009 03:07 AM
тАО12-18-2009 03:07 AM
Re: recovering a single file
To list files in TAR:
# tar -tvf
To recover files from TAR:
# tar -xvf
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-18-2009 03:11 AM
тАО12-18-2009 03:11 AM
Re: recovering a single file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-18-2009 03:18 AM
тАО12-18-2009 03:18 AM
Re: recovering a single file
But with this can we able to recover a single file?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-18-2009 03:21 AM
тАО12-18-2009 03:21 AM
Solution# tar -xvf
OR
# tar -xvf
tarfile - name of tar archive
destination - where you want the file to be extracted (this is optional argument)
path_of_file_to_be_recovered_as_in_tar - When you do a "tar -tvf <>" command, you can see the path of the file, it might be relative or might be absolute
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-18-2009 09:21 PM
тАО12-18-2009 09:21 PM
Re: recovering a single file
You can of course toss tar and use pax(1) instead: (or use GNU tar)
pax -r -v -f
>R.K.: destination - where you want the file to be extracted (this is optional argument)
What tar is this? There are no optional arguments "destination" arguments like this.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-18-2009 10:03 PM
тАО12-18-2009 10:03 PM
Re: recovering a single file
>>There are no optional arguments "destination" arguments like this.
Thanks for correction.
/tmp
# ll ioscan*
ioscan* not found
/tmp
# tar -xvf sysinfo.tar /home ioscan.txt
x ioscan.txt, 5231 bytes, 11 tape blocks
/home
# ll ioscan*
ioscan* not found
/tmp
# ll ioscan*
-rw------- 1 root sys 5231 Dec 19 00:38 ioscan.txt
There are NO arguments for "destination" in tar.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-31-2009 02:40 AM
тАО12-31-2009 02:40 AM
Re: recovering a single file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-31-2009 03:09 AM
тАО12-31-2009 03:09 AM
Re: recovering a single file
All directories fall under the topmost root directory, which is denoted by a slash (/). When you use HP-UX, you are working in a directory called the current working directory. And when you log in, HP-UX places you in your home directory.
Rgs,