Linux port who is using




















A topic that contains also an answer for kernel level processes serverfault. Add a comment. Active Oldest Votes. Improve this answer. Chris Down Chris Down k 22 22 gold badges silver badges bronze badges. Note: under OSX, the -p option is for protocol rather than process. See this question — Bryan P.

BryanP the OP asked for Ubuntu so that's kinda irrelevant This answer would probably be improved by putting the need to sudo at the top. MrOnyancha Use the terse -t options - lsof -ti tcp — Mohnish. Show 10 more comments. Also you can use lsof utility. Need to be root. Vitaliy Vitaliy 1, 1 1 gold badge 8 8 silver badges 2 2 bronze badges.

This command will also give you processes with established connections, not just processes that are listening. Not necessarily to be root. And, for those who want to get PID only, you can lsof -i -Fp , which produces output like p Important to note that you may need to run as sudo as some processes may be inaccessible to the user. For more information on lsof : tecmint. Oleksandr Oleksandr 3 3 gold badges 12 12 silver badges 21 21 bronze badges.

But what if sudo netstat -nlp grep still display - instead of PID? It doesn't working fuser -v -n tcp 80 , even I try with sudo — SuperKrish. Note: This requires sudo if the offending process was also started with sudo — laggingreflex. This is a good thing to remember generally.

This is true even when the command does not normally need sudo to run correctly. Daniel Jonsson Daniel Jonsson 1, 2 2 gold badges 11 11 silver badges 9 9 bronze badges.

The Overflow Blog. Does ES6 make JavaScript frameworks obsolete? Podcast Do polyglots have an edge when it comes to mastering programming Featured on Meta. Now live: A fully responsive profile. You can also subscribe without commenting.

This site uses Akismet to reduce spam. Learn how your comment data is processed. Using netstat Command netstat network statistics command is used to display information concerning network connections, routing tables, interface stats, and beyond.

In case you do not have it installed by default, use the following command to install it. If you liked this article, then do subscribe to email alerts for Linux tutorials.

If you have any questions or doubts? Related Posts. Example: netstat -ltnp grep -E ' ' Reply. The hard way: on an embedded Linux 2. Jason Many thanks for sharing your experience from the embedded Linux side of it. Got something to say?

Join the discussion. Cancel reply Have a question or suggestion? Comment Name Email Website Save my name, email, and website in this browser for the next time I comment.



0コメント

  • 1000 / 1000