I'm writing a script that is supposed to simply tell me the amount of free physical memory excluding caches and I noticed that my Fedora system shows a different output format than a CentOS system I have a Unix account on:
$ free
total used free shared buff/cache available
Mem: 7865868 3934924 241300 485916 3689644 3093784
Swap: 8388604 950988 7437616
$ ssh -q centos free
total used free shared buffers cached
Mem: 1921876 1848024 73852 0 10120 87124
-/+ buffers/cache: 1750780 171096
Swap: 2097148 240428 1856720
$ free -V
free from procps-ng 3.3.10
$ ssh -q centos free -V
procps version 3.2.8
Is there a way I make my Fedora free
output look like the CentOS one?
-o/--old
option help?free
doesn't seem to have one.