Memory check command
Simple memory check command to see total memory, swap, cache... just like linux "free" command, but it works everywhere.
cargo install freem
freem
┌────────┬──────────┬──────────┬──────────┬────────┬────────────┬───────────┐
│ │ total │ used │ free │ shared │ buff/cache │ available │
├────────┼──────────┼──────────┼──────────┼────────┼────────────┼───────────┤
│ Memory │ 28943804 │ 11107992 │ 17835812 │ 0 │ 0 │ 17835812 │
│ Swap │ 1835008 │ 0 │ 1835008 │ │ │ │
└────────┴──────────┴──────────┴──────────┴────────┴────────────┴───────────┘
With you wanna see in megabytes, just use -m
freem -m
┌────────┬───────┬───────┬───────┬────────┬────────────┬───────────┐
│ │ total │ used │ free │ shared │ buff/cache │ available │
├────────┼───────┼───────┼───────┼────────┼────────────┼───────────┤
│ Memory │ 28265 │ 11102 │ 17163 │ 0 │ 0 │ 17162 │
│ Swap │ 1792 │ 0 │ 1792 │ │ │ │
└────────┴───────┴───────┴───────┴────────┴────────────┴───────────┘
Or even gigabytes just -g
freem -g
┌────────┬───────┬──────┬──────┬────────┬────────────┬───────────┐
│ │ total │ used │ free │ shared │ buff/cache │ available │
├────────┼───────┼──────┼──────┼────────┼────────────┼───────────┤
│ Memory │ 27 │ 10 │ 17 │ 0 │ 0 │ 16 │
│ Swap │ 1 │ 0 │ 1 │ │ │ │
└────────┴───────┴──────┴──────┴────────┴────────────┴───────────┘