如何通过命令行清除缓存?


0

我想在linux上通过命令行清除所有缓存,你是怎么做到的?

Mem:1033200k总计,175560k使用,857640k免费,5880k缓冲交换:总计2097144k,0k使用,2097144k免费,70804k缓存

Answers:


3

你可以这样做:

echo 3 >/proc/sys/vm/drop_caches

当然,作为根。

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.