libstatgrab

Cross-platform library for accessing system statistics

brewmacoslinux
Try with needOr install directly
Source

About

Provides cross-platform access to statistics about the system

Commands

statgrab

Examples

Display current CPU usage statistics$ statgrab cpu
Show memory and swap usage information$ statgrab mem swap
Get disk I/O statistics for all disks$ statgrab disk_io