Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Because you can

    echo 3 | sudo tee /proc/sys/vm/drop_caches
but

    sudo echo 3 > /proc/sys/vm/drop_caches
won't work.


Right, that's what I was missing. That makes sense, and come to think about it, is a very useful addition to my toolbox. Thanks pdw and jochu!


You can also accomplish the same thing with:

    sudo sysctl -w vm.drop_caches=3




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: