Page 1 of 1

sudo sync; echo 3 > /proc/sys/vm/drop_caches doesn't work [SOLVED]

Posted: Fri Sep 14, 2018 4:56 pm
by kido
I tried to clean cache with this command

Code: Select all

sudo sync; echo 3 > /proc/sys/vm/drop_caches
but after I enter my password I get:

Code: Select all

[sudo] password for kido: 
bash: /proc/sys/vm/drop_caches: Permission denied
I have linux mint 18.3.

Someone please tell me: what should I do in this case?

Re: sudo sync; echo 3 > /proc/sys/vm/drop_caches doesn't work

Posted: Fri Sep 14, 2018 5:02 pm
by thx-1138
sync && sudo sysctl vm.drop_caches=3

Re: sudo sync; echo 3 > /proc/sys/vm/drop_caches doesn't work [SOLVED]

Posted: Fri Sep 14, 2018 5:44 pm
by kido
Thank you very much my friend. Works :).