Я использовал команду ниже:
# ping -c3 hostname|awk '/received/{print $0}'| awk -F "," '{print $2}'|sed -r "s/^\s+//g"| awk '{print $1}`
Вывод:
3
top
's бесплатно число 90G. Рядом с общими , использованными и баффами/кешем стоят знаки +. top
сообщает о тех же размерах, что и free
.
См. справочную страницу top
, в частности, описание интерактивной команды E
в разделе 4a:
E :Enforce-Summary-Memory-Scale in Summary Area
With this command you can cycle through the available
summary area memory scaling which ranges from KiB
(kibibytes or 1,024 bytes) through EiB (exbibytes or
1,152,921,504,606,846,976 bytes).
If you see a `+' between a displayed number and the
following label, it means that top was forced to truncate
some portion of that number. By raising the scaling
factor, such truncation can be avoided.