Comment by FeepingCreature
5 years ago
Instead of sudo sh -c to sudo the redirects, consider echo 'abcde' |sudo tee /proc/bla. Less nesting :)
5 years ago
Instead of sudo sh -c to sudo the redirects, consider echo 'abcde' |sudo tee /proc/bla. Less nesting :)
Do you mean less syntactical nesting? The pipe to sudo tee creates a new child shell, just as sudo sh -c does.
Yes.