I have a bash code below under FreeBSD:
tar -c file1 > file1.tar
It gives below error when I run it. Do you know how can I fix it?
tar: Failed to open '/dev/sa0'
I suggest passing -f -
to tar
(in addition of the other arguments) to indicate that the tar file you want to create is the stdout stream.
tar -f - -c file1 > file1.tar
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With