+3 votes
in Operating Systems by (6.5k 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

0 votes
by (35.8k points)

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

+3 votes
1 answer
+2 votes
1 answer
+2 votes
1 answer
+2 votes
1 answer
+3 votes
1 answer
...