Ravi Sir's Cards › AWS
sudo echo > file fails?
This interview card answers: sudo echo > file fails? Your shell does the redirect. Use tee as root. Append — tee -a.
Read card text
What this card says
What it is
Your shell does the redirect.
Why it matters
Use tee as root.
echo 1 | sudo tee /path
How / example
Append: tee -a.