Tar: Failed to open /dev/sa0: Difference between revisions
From Leo's Notes
This page was last edited on 24 February 2017, at 19:14.
Created page with " If you are getting an error similar to: tar: Failed to open '/dev/sa0' while trying to extract an archive piped to <code>tar</code> like: cat archive.tar | tar -x You p..." |
m Text replacement - "</code>" to "}}" |
||
| (One intermediate revision by the same user not shown) | |||
| Line 4: | Line 4: | ||
tar: Failed to open '/dev/sa0' | tar: Failed to open '/dev/sa0' | ||
while trying to extract an archive piped to | while trying to extract an archive piped to {{code|tar}} like: | ||
cat archive.tar | tar -x | cat archive.tar | tar -x | ||
You probably want to define | You probably want to define {{code|-f -}} to tell tar to extract from stdin. | ||
cat archive.tar | tar -xf - | cat archive.tar | tar -xf - | ||
Latest revision as of 19:14, 24 February 2017
If you are getting an error similar to:
tar: Failed to open '/dev/sa0'
while trying to extract an archive piped to tar like:
cat archive.tar | tar -x
You probably want to define -f - to tell tar to extract from stdin.
cat archive.tar | tar -xf -