This script contains a collection of commands that are used to update system resources and software.
To run the script, simply execute ./script_name.sh
sudo chmod 755 clean_memory.sh
sudo purgesudo dscacheutil -flushcache; sudo killall -HUP mDNSRespondercd ~/Library/Logssudo rm -rf ~/Library/Logs/*sudo rm -rf /private/var/log/*
Please make sure to update the version of the commands in the commands array if you're using a different version of macOS or OS X.