LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   How to check the post number? (https://www.linuxquestions.org/questions/linux-server-73/how-to-check-the-post-number-4175471007/)

Senthilv 07-26-2013 09:29 AM

How to check the post number?
 
Hai,

I want to known, how the check the port number reserverd the Postfix, Sendmail and Samba Server?

bathory 07-26-2013 03:17 PM

Quote:

Originally Posted by Senthilv (Post 4997240)
Hai,

I want to known, how the check the port number reserverd the Postfix, Sendmail and Samba Server?

You can run
Code:

netstat -tuanpl|egrep 'sendmail|postfix|smbd|nmbd'
Regards

salasi 07-27-2013 06:53 AM

Quote:

Originally Posted by Senthilv (Post 4997240)
...check the port number reserverd the Postfix, Sendmail and Samba Server?

Reserved? Ports don't really get reserved so much as sit there and get taken on a 'first come, first served' basis.


Code:

netstat -tuanpl|egrep 'sendmail|postfix|smbd|nmbd'
now that's fine if the program is actually up and running and actually listening, but if the program hasn't started yet, you might be better grepping /etc/services. Now that only gives you the 'standard' port for the service, and you might have moved a service from the standard port, although the likelihood is that if you've moved it, you'd know. Probably.


All times are GMT -5. The time now is 03:34 PM.