Free up memory in OSX Mavericks

Screen Shot 2014-03-05 at 11.23.16 PM

Lately I’ve noticed  that Mavericks OSX is consuming almost 8GB of memory which I have no idea why it used too much when I don’t have much app running. In order to free up the memory in OSX, you can try by typing

purge

or

sudo purge

in terminal in which OS X will free up the “inactive” memory.