I am using the tar -xvf command and it is taking the explicit path. However, the path is full.
Example:
tar -xvf 13.2.tar
It is taking the path of /mnt folder. The / folder is full.
How can I tar the file with the implicit path?
|
I am using the
It is taking the path of How can I tar the file with the implicit path? |
||||
|
|
The difference between using canonical (aka explicit) and relative (what you're probably calling implicit) is whether you use a For example, if the current working directory is tar -xvf foo.tar * tar -xvf ./foo.tar * tar -xvf ./foo.tar ./* tar -xvf /usr/home/bob/foo.tar * tar -xvf /usr/home/bob/foo.tar ./* tar -xvf /usr/home/bob/foo.tar /usr/home/bob/* But I suspect that this isn't really your question. It seems more like you need to determine the disk usage, and locate a directory that's not full. This can be done with the
And you can use |
||||
|
|
|
I believe pax will do the trick pax -r -s,/mnt,/gooddir, -f 13.2.tar It should let you substitute in a new root directory. |
||||
|
|
|
Usually However, if you have an archive with the leading
I think
I found this wiki page on Google just now. |
|||
|
|
|
To create a tar file with a relative path,
To unpack a tar into a specific directory other than the current working directory, use the -C (uppercase C) switch. If you want to untar a file with absolute pathnames in it to a point other than root, you might need to mess about with |
|||
|
|