Directing Solaris Tar to Extract to Current Directory
Tags:
If a tarball includes the full path, use the following command to extract it to the current directory instead of the full path: pax -rv -f filename.tar -s ',^/,,'
»
- Add new comment
- 5790 reads

Many thanks. I've seen other suggested pax solutions but this one actually works. Thank you! My backup script no longer includes absolute path names.
yeah, this one bit me in the ass many times... Glad you found it useful.
Thanks!