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'
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I suggest passing
-f -totar(in addition of the other arguments) to indicate that the tar file you want to create is the stdout stream.