Thursday, November 23, 2017

How to clean up your storage in MacOSX?

Mainly, in terminal, you often use

$df -h

Command to show the storage status how much it has been used and the percentage of it.

Yet this does not help you if finding out which exactly the directory contains large portion of memory so that you need to clean it up. In order to do this, in Linux, you can use sort command and pass the result of du output to it, but in MacOSX, first you need to use gsort.

brew install coreutils
du -hs * | gsort -h
It requires your Ruby version after 2.3.1, so if 
there are any troubles, please 
see the link below and update the Ruby app appropriately.
how to update your Ruby version 

No comments:

Post a Comment