LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 07-26-2013, 10:29 AM   #1
Senthilv
Member
 
Registered: Jan 2011
Posts: 64
Blog Entries: 2

Rep: Reputation: 0
How to check the post number?


Hai,

I want to known, how the check the port number reserverd the Postfix, Sendmail and Samba Server?
 
Old 07-26-2013, 04:17 PM   #2
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,962

Rep: Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341
Quote:
Originally Posted by Senthilv View Post
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
 
Old 07-27-2013, 07:53 AM   #3
salasi
Senior Member
 
Registered: Jul 2007
Location: Directly above centre of the earth, UK
Distribution: SuSE, plus some hopping
Posts: 3,916

Rep: Reputation: 777Reputation: 777Reputation: 777Reputation: 777Reputation: 777Reputation: 777Reputation: 777
Quote:
Originally Posted by Senthilv View Post
...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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to check a number is epoch seconds or not ramsavi Programming 4 05-19-2013 11:04 AM
check file contains number or not rajachan Programming 1 01-29-2013 07:35 AM
[SOLVED] C - check if a number is divisible by another number Andy Alkaline Programming 2 07-11-2012 03:06 PM
How to check for number of folders, then delete IF ... rbalaa Linux - General 4 04-10-2010 10:17 AM
how can i check that $1 is number... DoME69 Programming 10 03-09-2009 03:08 PM


All times are GMT -5. The time now is 11:25 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration