Clear buffer cache on GNU/Linux systems


/ Published in: Bash
Save to your folder(s)

Clear buffer cache on GNU/Linux systems


Copy this code and paste it in your HTML
  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.