Same as the rest, but handle IPv6 short IPs. Also, sort in the order that you're probably looking for. Show Sample Output
This command show listening sockets TCP and UDP. Useful for stop unwanted services from linux. Show Sample Output
slighty shorter
A way not so simple but functional for print the command for the process that's listening a specific port.
I got the pid from lsof because I think it's more portable but can be used netstat
netstat -tlnp
Show Sample Output
Works only on Linux. Last option (n) turn name of service resolving (/etc/services) off. Show Sample Output
perl-based version
Using netstat & find together, found this while on stackoverflow s few minutes ago and really like it due to the simplicity and so far it's the most concise. Show Sample Output
shows opened ports on machine in continuous mode (refreshing every 10 sec) Show Sample Output
I cannot run Tomcat from Eclipse. It says that there?s other process that is running on port 8080, but I don?t know what is the process, and how to stop it from the Services manger in Windows. So here?s how you can kill and find out what is that process: To find out what PID 8080 was (hopefully not a trojan) I typed tasklist /FI ?PID eq 8080″ taskkill /F /PID 2600
count connections, group by IP and port
Count and Find all IP connected to my host through TCP connection. Show Sample Output
We use the "convert" command (ImageMagick package) : see man convert (http://www.ma.utexas.edu/cgi-bin/man-cgi?convert+1)
See who is using a specific port. Especially when you're using AIX. In Ubuntu, for example, this can easily be seen with the netstat command. Show Sample Output
commandlinefu.com is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.
Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.
» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10
Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):
Subscribe to the feed for: