Commands

Memory

Check currently used memory

$ cat /proc/meminfo

Ports

Check currently listing TCP ports

$ sudo lsof -nP -iTCP -sTCP:LISTEN