-bash: Permission Denied
Posted on 2011-03-25
I am running Fedora linux and trying out sort a text file and output it to another text file:
sudo sort 1.txt >2.txt
The sort alone works ok. I and also do this in the user's home directory. However, in other parts of the server, i get:
-bash: 2.txt: Permission denied
This is despite the fact that in the same directory I can create a text file (sudo vim 3.txt) without any problem or complaint about permissions to the folder.