recentpopularlog in

kme : tar   11

unix - tar – extract discarding directory structure - Super User |
If you just want to remove a few path segments, then --strip-components=n or --strip=n will often do:
<code class="language-bash">
tar xvzf tgz --strip=1
unix  linux  sysadmin  tar  archive  backupandrecovery  solution 
may 2019 by kme
linux - How to strip path while archiving with TAR - Stack Overflow
In your "Extraction phase" you can use the strip-components flag like
<code class="language-bash">tar xvf tarname.tar --strip-components=n</code>
tar  archive  decompression  tipsandtricks  commandline  shellscripting  solution 
november 2018 by kme
linux - Avoid errors from tar failing to restore directory permissions - Super User |
This tar option might be what you're looking for:
<code> --no-overwrite-dir
preserve metadata of existing directories</code>
commandline  shellscripting  sysadmin  tar  errormessage  solution 
may 2018 by kme
Alternatives to tar (in Ubuntu repos)
The complete details are in the note itself, but basically the ones I've found so far are:

* dtrx
* unp
* atool

So far, I like 'unp' just fine becaues it's easy to type (one hand), it's written in Perl, and it gets the job done.
unarchive  archive  ubuntu  package  commandline  sysadmin  cli  alternativeto  tar 
june 2015 by kme
Avoiding Tar's (or Any Other Commandline's) Argument List Too Long Error | DZone []
# a shorthand of this would be:
find . -name '*.ext' -print | tar -cvzf archive.tar.gz --files-from -
unix  sysadmin  backupandrecovery  find  tar  solution  webmaster 
august 2014 by kme

Copy this bookmark:

to read