free command

Hi.

How to get free command working from the command line (Konsole) like on linux under FreeBSD 7.3?
 
There's also sysctl(8). Variables of possible interest:

Code:
vm.stats.vm.v_free_count
vm.stats.vm.v_active_count
vm.stats.vm.v_inactive_count
vm.stats.vm.v_page_size

The values of v_*_count need to be multiplied by v_page_size to get bytes.
 
For a root user just add this line in ~/.cshrc:
Code:
alias free      freecolor
but I still cannot find out, how it should work for a normal non-root user.
 
Back
Top