0

How to clear the cache in linux

I need to clear the cache in my system, where to clear those cache.....?????

nicholas
asked Feb 7, 2017
1 Answer
0

By default, there are various caches like RAM, swap space, Buffer, etc.

Those cache will be saved in /proc/sys/vm/drop_caches

To clear, run the below commands:

# sync; echo 1 > /proc/sys/vm/drop_caches                            [For Pagecache]
# sync; echo 2 > /proc/sys/vm/drop_caches                            [For inodes]
# sync; echo 3 > /proc/sys/vm/drop_caches                            [For both]
# swapoff -a                                                         [For swap cache]
View More
jagannatharumugam
answered Feb 8, 2017
Your Answer
||||
 
100:0