free memory command

hello there,
I am trying to get the same results on freebsd as I get them in linux..
how can I do that?
[(05:00 PM)][(root@dedicated)] [(~)] $ free -bt
             total       used       free     shared    buffers     cached
Mem:    2115526656 1922269184  193257472          0  155131904  961261568
-/+ buffers/cache:  805875712 1309650944
Swap:   1077501952     184320 1077317632
Total:  3193028608 1922453504 1270575104
[(05:00 PM)][(root@dedicated)] [(~)] $ free -bt | grep buffers\/cache | awk '{print $3}'
805875712
[(05:00 PM)][(root@dedicated)] [(~)] $ free -bt | grep buffers\/cache | awk '{print $4}'
1309523968

Open in new window

LVL 1
XK8ERAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

saurabhpendharkerCommented:
Hello,

I have already answered it on ID:23916230 and specifying the same again in this thread. Please see below:

Get the following file on your freebsd box http://www.cyberciti.biz/files/scripts/freebsd-memory.pl.txt
bash# mv freebsd-memory.pl.txt /usr/local/bin/free
bash# chmod +x /usr/local/bin/free
bash# /usr/local/bin/free ( Note: Perl need to be installed)
0
XK8ERAuthor Commented:
both questions are totally different so you cannot answer the same!
0
saurabhpendharkerCommented:
Yes I noticed it after I submit it. Sorry about that.
You may try "top" command or "sysctl -a | grep -i memory".
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
XK8ERAuthor Commented:
so how exactly can I get the same results on a freebsd system?
0
gheistCommented:
Memory manager is different. Use Linux if you do not like FreeBSD, or use SNMP for more generic and unified view of different systems.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Unix OS

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.