Last active
June 11, 2021 07:21
-
-
Save kontza/3b696634c859043e8d601f485d6e605e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
clear && \ | |
sudo netstat -tUlpn|\ | |
awk '/java/{gsub(/\/java/, "", $7);gsub(/^[0-9.]+\:/, "", $4);printf "%6s = ",$4; system("ps -o user,args -p " $7 " --no-headers")}'|\ | |
sort |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This prints out the command lines of Java apps that have a TCP port open.