(no title)
kayson | 25 days ago
This won't work :) echo will run as root but the redirection is still running as the unprivileged user. Needs to be run from a privileged shell or by doing something like sudo sh -c "echo $NUM_PAGES > /proc/sys/vm/nr_hugepages"
The point gets across, though, technicality notwithstanding.
thayne|25 days ago
axiolite|25 days ago
> write stdin to a file that doesn't also write it to stdout
You mean like "dd of=/path/file" ?
vbezhenar|25 days ago
And probably `echo -o output-file` as well.
TheDong|25 days ago
If you happen to have moreutils installed, you can do that with pee
wang_li|24 days ago
timetoogo|25 days ago