Posted By

rm1984 on 01/18/17

Tagged

Bash linux free cache

Viewed 3 times

Clear buffer cache on GNU/Linux systems


/ Published in: Bash

Clear buffer cache on GNU/Linux systems

  1. !#/bin/bash
  2.  
  3. echo '==== BEFORE ===='
  4. free
  5. sync
  6. echo 3 > /proc/sys/vm/drop_caches
  7. echo '==== AFTER ===='
  8. free

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.