updates #2

Merged
eriks merged 2 commits from updates into master 2022-11-09 11:52:39 +02:00
Showing only changes of commit d398f007c9 - Show all commits

View File

@ -78,3 +78,13 @@ colors() {
done done
} }
drop_cache() {
free -hw
sync
sudo bash -c "echo 1 > /proc/sys/vm/drop_caches"
if [[ $1 ]]; then
sudo swapoff -a
sudo swapon -a
fi
free -hw
}