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
09-29-2005 08:39 AM
09-29-2005 08:39 AM
tar -xvf
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2005 08:42 AM
09-29-2005 08:42 AM
Re: tar -xvf
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2005 08:45 AM
09-29-2005 08:45 AM
Re: tar -xvf
"-x" means extract. You may extract, add or view file from/to/in a tar-archive.
Do a "man tar" for more information!
Regards
Torsten
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2005 08:50 AM
09-29-2005 08:50 AM
Re: tar -xvf
I believe that you are asking what the "x" means *as* you perform an archive extraction:
As far as I know, it is an informatory message to the effect that you are e(x)traacting as opposed to (a)rchiving:
# tar -cvf /tmp/myarchive /tmp/myfile
a /tmp/myfile 0 blocks
# tar -xvf /tmp/myarchive
x /tmp/myfile, 0 bytes, 0 tape blocks
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2005 08:54 AM
09-29-2005 08:54 AM
Re: tar -xvf
As stated earlier it display the action it is performing. If the process has more files the screen will scroll very fast and one can not find out actually what it going on screen.
This is how I utilize this.
Best Regards,
Devender
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2005 09:03 AM
09-29-2005 09:03 AM
Re: tar -xvf
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2005 09:06 AM
09-29-2005 09:06 AM
Re: tar -xvf
use tar -vtf
then read the toc file to see what files are in the archive, and their path nameing.
If the archive was create dusing absolute paths, i.e. starting with /
they will only extract to the absolute path.
Then you can use pax to extract to a local directory
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2005 09:08 AM
09-29-2005 09:08 AM
Re: tar -xvf
If you did:
# tar -cvf file.tar /u06/whatever
Then when you extract the files will be extracted to that same exact path.
Now if you did:
# tar -cvf file.tar ./u06/whatever
or
# tar -cvf file.tar u06/whatever
(Note the ./ in the first example and the lack of a leading / in the 2nd)
Then when you exctract the files they will be restored relative to the directory you were in when you did the 'tar -x'.
So if you were in /u06 and then did a 'tar -xvf file.tar' the files would have been restored to /u06/u06/whatever.
So, go look in the directory you were in when you did the 'tar -x' and look for a newly created u06 sub-directory there.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2005 09:09 AM
09-29-2005 09:09 AM
Re: tar -xvf
This happens when you create archive using full path or absolute path. The file are gine to the directory from where they were created either on same or different system.
To avoid this sort of scenario and restore to local directory you should create archive with relative path. Something like this
#tar -cvf test.tar hp*
Once done like this it will be restored to local directory only.
HTH,
Devender
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2005 09:18 AM
09-29-2005 09:18 AM
Re: tar -xvf
example:
# tar -tvf /dev/rmt0
t for View.
c for copy from disk to tape.
x for extract to tape.
#man tar
Cheers,
Raj.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2005 09:38 AM
09-29-2005 09:38 AM
Re: tar -xvf
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2005 09:44 AM
09-29-2005 09:44 AM
Re: tar -xvf
Whatever directory that is, your stuff will be restored there. The directory structure will be created as the restore is done.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2005 09:45 AM
09-29-2005 09:45 AM
Re: tar -xvf
So if you were in /u06 and the files were stored as ./myfiles they should be in /u06
Which directory were you in, and provide an example of the path/filename of one of the extracted files and it will be easier to point you in the right direction
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2005 03:46 PM
09-29-2005 03:46 PM
Re: tar -xvf
x Extract the named file from the archive and restore it to
the system. If a named file matches a directory whose
contents were written to the archive, this directory is
(recursively) extracted. If a named file on tape does not
exist on the system, the file is created as follows:
+ The user, group, and other protections are restored
from the tape.
+ The modification time is restored from the tape
unless the m function modifier is specified.
+ The file user ID and group ID are normally those of
the restoring process.
+ The set-user-ID, set-group-ID, and sticky bits are
not set automatically. The o and p function
modifiers control the restoration of protection; see
below for more details.
If the files exist, their modes are not changed, but the
set-user-id, set-group-id and sticky bits are cleared. If
no file argument is given, the entire content of the archive
is extracted. Note that if several files with the same name
are on the archive, the last one overwrites all earlier
ones.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-30-2005 12:01 AM
09-30-2005 12:01 AM
Re: tar -xvf
/u06/donald/printers when in fact the files wound up in /u06/donald.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-30-2005 08:30 AM
09-30-2005 08:30 AM
Re: tar -xvf
Now that you have your answer, it might be worth assigniing points to those who have helped you in the past:
I have assigned points to 42 of 139 responses to my questions.