Reputation: 410
I want to store error of unix command into file.
Ex. cd /test /test: No such file or directory. I want to store error "/test: No such file or directory." into file
Can you please help?
Upvotes: 0
Views: 834
Reputation: 2718
How about
cd /test 2> myFile.txt
Upvotes: 4