Tar: Failed to open /dev/sa0

From Leo's Notes
Revision as of 05:34, 18 June 2013 by Leo (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
This page was last edited on 18 June 2013, at 05:34.

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 -