What is equivalent of Linux's 'free' command on FreeBSD v8.1
vmstat
has default output which is similar in nature and takes many options that give extremely detailed information, egvmstat -m
swapinfo
would cover the swap parttop -d1
causes top to print one screen and exit, and the banner is very similar tofree
. Usetop -d1 | head -n 7
to see only the banner
vmstat -s
gives some more human-readable or script-parseable information, including listing the page size. Otherwise, it gives output in numbef of pages. With no options, vmstat
gives a brief summary.
The vmstat
command also exists on NetBSD.
Maybe freecolor
command is a choice. Install it:
# cd /usr/ports/sysutils/freecolor
# make install clean
Use it:
# freecolor
Physical : [#################################..] 94% (1907820/2018396)
Swap : [###################################] 100% (1048540/1048540)
# freecolor -m -o
total used free shared buffers cached
Mem: 1971 107 1863 0 0 0
Swap: 1023 0 1023
Please refer FreeBSD find out RAM size Including Total Amount of Free and Used Memory Size.