Piccolo programma per visualizzare la memoria disponibile in debian

1
2
3
4
5
6
7
#!/bin/sh
#DESCRIPTION=Show Memory and Swap File Available
cat /proc/meminfo| grep MemTotal:
cat /proc/meminfo |grep MemFree:
cat /proc/meminfo |grep SwapTotal:
cat /proc/meminfo |grep SwapFree:
exit 0