How to list all TCP/IP connections ordered by IP and count #security #linux 2022-05-19 Tweet How to list TCP/IP connections per remote IP, ordered by count: $ netstat -ntu | awk '{print $5}' | cut -d: -f1 -s | sort | uniq -c | sort -nk1 -r