Linux Ubuntu: free unused memory

$> sudo su $> sync ; echo 1 > /proc/sys/vm/drop_caches $> sync ; echo 2 > /proc/sys/vm/drop_caches $> sync ; echo 3 > /proc/sys/vm/drop_caches
Bash script to free some memory. Useful within cron for keep clean memory (perhaps a little lost in performance).

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.