+4 votes
in Operating Systems by (33.8k points)
The buffer/cache on my VPS is almost full. How can I clear it? Is there any command for it?

I am using Debian 10 on my VPS.

1 Answer

+1 vote
by (157k points)
selected by
 
Best answer

The OS should clear the cache itself whenever it needs. However, if you want to delete cache yourself, you can run the following command. It should work on both Ubuntu and Debian.

echo 1 > /proc/sys/vm/drop_caches

Related questions

+4 votes
1 answer
+3 votes
1 answer
+2 votes
1 answer
+2 votes
1 answer
+2 votes
1 answer

...