$ touch ~/test.txt $ chmod a-w ~/test.txt $ echo "string" > ~/test.txt bash: /home/user/test.txt: Permission denied $