06-09-2021, 09:59 AM
The privs granted by sudo stop at the redirect, so you can't redirect into files your user doesn't have write access to. Piping into sudo tee is a common workaround for this limitation, and often used with things in sysfs.