Ravi Sir's Cards › AWS
Why sudo echo > file fails?
This interview card answers: Why sudo echo > file fails? Redirection runs as you. Let tee write as root. Write a root file.
Read card text
What this card says
What it is
Redirection runs as you.
Why it matters
Let tee write as root.
How / example
Write a root file.
echo x=1 | sudo tee /etc/app.conf