Trying to append file to tar archive returns error “Cannot stat: No such file or dire
Just started using Linux and practicing using different commands, as a learning exercise I was trying to append a file to a tar archive that I created named "test.tar" using this command:
tar rvf test.tar newfile
Which returned the error:
tar: newfile: Cannot stat: No such file or directory
tar: Exiting with failure status due to previous errors
I also tried:
tar -rvf test.tar newfile
Which returned the same result.
|