2 ms·
You can't sudo echo and redirect from the non-sudo shell like that. echo 3 | sudo tee /proc/sys/vm/drop_caches or sudo sh -c 'echo 3 > /proc/sys/vm/d
by dundarious 5mo ago
You can't sudo echo and redirect from the non-sudo shell like that.
echo 3 | sudo tee /proc/sys/vm/drop_caches
or
sudo sh -c 'echo 3 > /proc/sys/vm/drop_caches'
Also fixed your typo in /proc...
- john_strinlai 5mo agothanks. copy pasting from the github via my phone, and should have taken the extra few mins
- dundarious 5mo agoNo worries, overall a very useful summary comment.
- throw0101c 5mo agoAlso try: sudo sysctl -w vm.drop_caches=3
- wpollock 5mo agoOr more simply, use su -c 'echo 3 > /proc/sys/vm/drop_caches'
- seba_dos1 5mo agoecho 3 | sudo tee /proc/sys/vm/drop_caches