On Fri, Apr 28, 2023 at 08:00:02PM -0400, The Wanderer wrote: > I would suspect that > > $ sudo 'echo 123 > /root/123.txt' > > would produce the effect you're after, but as I don't have sudo > installed, cannot verify that myself.
No, that won't work. It'll try to execute a program named 'echo 123 > /root/123.txt' which is really, really unlikely to exist in your current working directory.