Score:0

Listening port's with service name

sd flag
lee

I'm looping in listening ports and when looping I want to get the exact service name of the ports for further activity. So how can I get the service name of the ports.

Artur Meinild avatar
vn flag
Which command do you use to show listening ports? Please add the output to your question.
waltinator avatar
it flag
Are you using Ubuntu? Which release? Check `/etc/services`.
cn flag
lsof is the command to use. `sudo lsof -V -nP -i4UDP +c0` will show process and port on 1 line. If you have the ports; `lsof -i :{PORT}` will work too.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.