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 read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
kido

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

Post 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?
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
thx-1138
Level 8
Level 8
Posts: 2092
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 »

sync && sudo sysctl vm.drop_caches=3
kido

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

Post by kido »

Thank you very much my friend. Works :).
Locked

Return to “Other topics”