Skip to content

Clear memory cache in linux

The below command will remove cache memory

 sudo sh -c “sync; echo 3 > /proc/sys/vm/drop_caches” 

 

 

 

One Comment Post a comment
  1. kyaw.thu.soe@gmail.com's avatar
    kyaw.thu.soe@gmail.com #

    [root@PCE-DCMS vm]#
    [root@PCE-DCMS vm]# sh drop_caches
    drop_caches: line 1: 0: command not found
    [root@PCE-DCMS vm]#
    Please , kindly advise me .. I can’t run that file.

    December 18, 2013

Leave a comment