http://superuser.com/a/529844 (net-stat is deprecated)
http://www.cyberciti.biz/faq/how-do-i-find-out-what-ports-are-listeningopen-on-my-linuxfreebsd-server/
# nmap -sS -O 127.0.0.1
# lsof -i
# netstat -lptu
# netstat -tulpncurl -H "Date: Mon Jun 6 13:50:50 ART 2016" \
-H "Authorization: oi2u987c89qwkhje2k1" \
-H "Content-Type: application/json" \
"127.0.0.1:9001?do=api"
===
curl -X POST \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
-d '{ "client_id": 1 }' \
'http://api.site.com/categories'$ upower -i $(upower -e | grep 'BAT') | grep -E "state|to\ full|percentage"/dev/null 2>&1