Blog Archives

Redirect the standart output to a file which does not have write permissions

When you try to redirect the standard output (stdout) to a file not having write (w) permissions, you often get this error: “Permission denied” $ echo “test” > a.txt -bash: a.txt: Permission denied Do the trick by using sudo tee:

Tagged with: , , , , , , ,
Posted in The Linux and Unix Articles!
Support LinuxG via Patreon
Support on Patreon!


Subscribe to get the latest Linux news and how to guides directly on your e-mail!