3 ms·
Note that there is a significant difference in that `tee` also outputs the file. For something like this a single line with a single character is unlikely to bo
by kevincox 6y ago
Note that there is a significant difference in that `tee` also outputs the file. For something like this a single line with a single character is unlikely to bother anyone, but if you are trying to write an image to a disk it will be rather unpleasant.
I tend to use the following:
echo 1 | sudo zsh -c '>/proc/sys/kernel/perf_event_paranoid'
or even
<<<1 sudo zsh -c '>/proc/sys/kernel/perf_event_paranoid'
- chrismorgan 6y agoYeah, if it’s more then you’ll probably want to feed tee’s stdout to /dev/null.