---
title: "linux中free命令的cache和buffer如何清空"
author: "85977328"
date: "2016-07-20T15:52:24Z"
tags: []
categories: ["操作系统"]
slug: "linux-free-cache-buffer"
draft: false
lastmod: "2016-07-20T15:52:24Z"
id: 2312412
url: "https://phl.iteye.com/blog/2312412"
---

我们在使用linux的时候，执行free -m查看内存。如下如：
![](http://dl2.iteye.com/upload/attachment/0118/8157/352b8ce7-436b-3215-8242-9d6134061d1b.png)


执行echo 3 >  /proc/sys/vm/drop_caches
可以将buffer和cache清空

清理后的结果，留给大家自行操作了~