Friday, August 8, 2014

How to clear browser's cache and cookies from terminal in ubuntu

1) Clean up memory on linux
$ sync; echo 3 | sudo tee /proc/sys/vm/drop_caches

2)Clear filesystem memory cache
$ sync && echo 3 | sudo tee /proc/sys/vm/drop_caches

3)Release memory used by the Linux kernel on caches
$ sbin/sysctl -w vm.drop_caches=3

4)Clear the cache from memory
$ sync; echo 3 > /proc/sys/vm/drop_caches

5)Clear filesystem memory cache
$ sysctl -w vm.drop_caches=3

6)How to clear bash history completely
$ cat /dev/null > ~/.bash_history && history -c && exit

1 comment:

  1. A great online marketing company for technical support inbound calls & pop up calls for tech support , PPC Call provide by osiel web.
    Call at: +91 981-142-0083 ppc management experts & Web Master.

    ReplyDelete