tar: test.tar: Cannot stat: No such file or directory
and there's suddenly a file named 'X' in the current directory?
You've mixed up the order of the option switches. '-f' takes the next argument to be the name of the file where it should tar into, in your case 'X'. If you want to use the -X switch, you should provide a file with the patters you want to exclude. So the correct syntax should probably be:
Thanks for your information.
tar -cvf test.tar --exclude bin/perl bin/
When i execute i am getting the below error
tar: --exclude: No such file or directory
---------- Post updated at 01:22 AM ---------- Previous update was at 12:34 AM ----------
I got a solution.
Put the excluded file or directory name in some temporary file (/tmp/test)