A bash script to clean RAM cache and Swap

Today, I would like to share a bash script to clean RAM cache and Swap. Let’s take a look at the following script.

echo 3 >'/proc/sys/vm/drop_caches' && swapoff -a && swapon -a && printf '\n%s\n' 'Cleared Ram-cache and Swap'

Save the above codes as a file with .sh extension.

And give an execution permission to that file. Then you can clean RAM cache and swap by running that file.

Hope you enjoy that.

By Asahi



アプリ関連ニュース

お問い合わせはこちら

お問い合わせ・ご相談はお電話、またはお問い合わせフォームよりお受け付けいたしております。

tel. 06-6454-8833(平日 10:00~17:00)

お問い合わせフォーム