[root@localhost ~]# free --help
Usage:
free [options]
Options:
-b, --bytes show output in bytes
-k, --kilo show output in kilobytes
-m, --mega show output in megabytes
-g, --giga show output in gigabytes
--tera show output in terabytes
--peta show output in petabytes
-h, --human show human-readable output
--si use powers of 1000 not 1024
-l, --lohi show detailed low and high memory statistics
-t, --total show total for RAM + swap
-s N, --seconds N repeat printing every N seconds
-c N, --count N repeat printing N times, then exit
-w, --wide wide output
--help display this help and exit
-V, --version output version information and exit
For more details see free(1).
[root@localhost ~]#
[root@localhost ~]# free -b
total used free shared buff/cache available
Mem: 7930740736 2729738240 191709184 9756672 5009293312 4837699584
Swap: 8187277312 41418752 8145858560
[root@localhost ~]# free -k
total used free shared buff/cache available
Mem: 7744864 2665724 187264 9528 4891876 4724364
Swap: 7995388 40448 7954940
[root@localhost ~]# free -m
total used free shared buff/cache available
Mem: 7563 2603 182 9 4777 4613
Swap: 7807 39 7768
[root@localhost ~]# free -g
total used free shared buff/cache available
Mem: 7 2 0 0 4 4
Swap: 7 0 7
[root@localhost ~]# free -h
total used free shared buff/cache available
Mem: 7.4G 2.5G 182M 9.3M 4.7G 4.5G
Swap: 7.6G 39M 7.6G
[root@localhost ~]# free -l
total used free shared buff/cache available
Mem: 7744864 2665932 187060 9528 4891872 4724160
Low: 7744864 7557804 187060
High: 0 0 0
Swap: 7995388 40448 7954940
[root@localhost ~]# free -lh
total used free shared buff/cache available
Mem: 7.4G 2.5G 182M 9.3M 4.7G 4.5G
Low: 7.4G 7.2G 182M
High: 0B 0B 0B
Swap: 7.6G 39M 7.6G
[root@localhost ~]# free -th
total used free shared buff/cache available
Mem: 7.4G 2.5G 182M 9.3M 4.7G 4.5G
Swap: 7.6G 39M 7.6G
Total: 15G 2.6G 7.8G
[root@localhost ~]# free -V
free from procps-ng 3.3.10