Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Find port name list - easy question

Posted on 2008-10-01
6
Medium Priority
?
986 Views
Last Modified: 2013-12-27
/etc/hosts gives the ip and the hoatname list. Likewise how can I find the list of ports and the assigned name for them?
0
Comment
Question by:shanikawm
6 Comments
 
LVL 17

Expert Comment

by:owensleftfoot
ID: 22612487
0
 
LVL 48

Accepted Solution

by:
Tintin earned 2000 total points
ID: 22612499
/etc/services
0
 
LVL 29

Expert Comment

by:fosiul01
ID: 22612500
use nmap commmand , you will see , which ports are open and what is their name

0
NFR key for Veeam Agent for Linux

Veeam is happy to provide a free NFR license for one year.  It allows for the non‑production use and valid for five workstations and two servers. Veeam Agent for Linux is a simple backup tool for your Linux installations, both on‑premises and in the public cloud.

 
LVL 8

Author Comment

by:shanikawm
ID: 22612508
I meant netstat -a gives me

*.pa_arrs            *.*                0      0 49152      0 LISTEN
      *.pa_neid            *.*                0      0 49152      0 LISTEN
      *.pa_rcm1            *.*                0      0 49152      0 LISTEN
      *.54977              *.*                0      0 49152      0 LISTEN
      *.54979              *.*                0      0 49152      0 LISTEN
      *.pa_rcm2            *.*                0      0 49152      0 LISTEN

So i would like to find what is pa_arrs and so on. I know netstat -na gives the number. But where the mapping exists?
0
 
LVL 48

Expert Comment

by:Tintin
ID: 22612514
As per my previous answer, /etc/services
0
 
LVL 8

Author Closing Comment

by:shanikawm
ID: 31501884
correct. Thanks
0

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Suggested Courses
Course of the Month13 days, 4 hours left to enroll

971 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question