Tar: Failed to open /dev/sa0

From Leo's Notes
Revision as of 19:13, 24 February 2017 by Leo (talk | contribs) (Text replacement - "<code>" to "{{code|")
This page was last edited on 24 February 2017, at 19:13.

If you are getting an error similar to:

tar: Failed to open '/dev/sa0'

while trying to extract an archive piped to {{code|tar like:

cat archive.tar | tar -x

You probably want to define {{code|-f - to tell tar to extract from stdin.

cat archive.tar | tar -xf -