Created
September 7, 2021 22:54
-
-
Save tuklusan/b58c61e6dab93aa66c3432957290bf5d to your computer and use it in GitHub Desktop.
SANYALnet Labs | Save State of VirtualBox Virtual Machines on APC UPS power loss shutdown by apcupsd Linux Daemon / clear-kernel-memory-cache.sh: see https://supratim-sanyal.blogspot.com/2021/09/save-state-of-virtualbox-virtual.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# /root/clear-kernel-memory-cache.sh | |
# See see https://supratim-sanyal.blogspot.com/2021/09/save-state-of-virtualbox-virtual.html | |
# | |
sync;sync;sync | |
echo 3 > /proc/sys/vm/drop_caches | |
sync;sync;sync |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment