tar -tvf filename.tar
Showing posts with label tar. Show all posts
Showing posts with label tar. Show all posts
Wednesday, March 30, 2011
Monday, March 15, 2010
Extract a certain file to a certain directory from a tar archive using GNU Tar
"gtar -C hobba -xvf aamr.tar aamr/1"
where:
"hobba" is the directory to extract to
"aamr.tar" is the archive from which we'll extract the file
"aamr/1" is the file inside the archive to be extracted to the destination directory (hobba).
where:
"hobba" is the directory to extract to
"aamr.tar" is the archive from which we'll extract the file
"aamr/1" is the file inside the archive to be extracted to the destination directory (hobba).
A more convenient alternative to AIX tar; gtar
Searched everywhere just to know how to use the "tar" command to extract an archive to a certain folder instead of extracting it using the same directory structure inside, and so here are the steps:
- Don't use the "tar" program
- Download the GNU tar rpm from the AIX toolbox
- Install it "rpm -ivh blablabla.rpm", you must have installed rpm at first from there of course, note that you must have root access to install that package
- logout and then back in, use "gtar" from now on.
Subscribe to:
Posts (Atom)