tar Cannot stat: No such file or directory

tar is a command used to create an archive for the folder to combine the contents of a folder into one archive. If we want to create an archive for the folder named xyz, as xyz.tar , running the command as shown below will throw an error

The problem is because of the wrong sequence of options being passed to the tar command. To get around the error the sequence of options to be passed is as below.

The above command will run with out errors and it should be able to create xyz.tar.

No comments:

Post a Comment

Follow by Email