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

Questions about other topics - please check if your question fits better in another category before posting here
Forum rules
Before you post please read how to get help
Post Reply
kido
Level 1
Level 1
Posts: 16
Joined: Sun Jul 15, 2018 8:40 am

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

Post by kido » Fri Sep 14, 2018 4:56 pm

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?
Last edited by kido on Fri Sep 14, 2018 5:43 pm, edited 1 time in total.

User avatar
thx-1138
Level 6
Level 6
Posts: 1284
Joined: Fri Mar 10, 2017 12:15 pm
Location: Athens, Greece

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

Post by thx-1138 » Fri Sep 14, 2018 5:02 pm

sync && sudo sysctl vm.drop_caches=3

kido
Level 1
Level 1
Posts: 16
Joined: Sun Jul 15, 2018 8:40 am

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

Post by kido » Fri Sep 14, 2018 5:44 pm

Thank you very much my friend. Works :).

Post Reply

Return to “Other topics”