Why do I get
-bash: test: Permission denied
when I run
sudo echo "xyz" > test
The directory permissions are:
drwxr-xr-x 3 root root 4096 2014-08-05 16:26
I have no problem creating a file in the directory using sudo
. But why can't I sudo echo into it?