4 ms·
Instead of sudo sh -c to sudo the redirects, consider echo 'abcde' |sudo tee /proc/bla. Less nesting :)
by FeepingCreature 6y ago
Instead of sudo sh -c to sudo the redirects, consider echo 'abcde' |sudo tee /proc/bla. Less nesting :)
- npongratz 6y agoDo you mean less syntactical nesting? The pipe to sudo tee creates a new child shell, just as sudo sh -c does.
- FeepingCreature 6y agoYes.