LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-03-2012, 11:22 PM   #1
fantasy1215
Member
 
Registered: Oct 2011
Posts: 75

Rep: Reputation: Disabled
lsof -i how to understand the output message?


I use lsof -i to list all the opened socket file descriptor.And I use this command to list all the listened port, But I have some doubt about the output messages.
Like:
Code:
mycmd  8983 userw    5u  IPv4     39189       TCP *:bmc-grx (LISTEN)
This line give the port name bmc-grx instead of port number.
How could I know the listened port number instead of the port mapped name?
Thanks in advance!
 
Old 06-04-2012, 11:23 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599
Use "-n". To avoid resolving about anything I use "-Pwln", see 'man lsof' for the meaning of those switches.
 
1 members found this post helpful.
Old 06-07-2012, 10:15 PM   #3
fantasy1215
Member
 
Registered: Oct 2011
Posts: 75

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by unSpawn View Post
Use "-n". To avoid resolving about anything I use "-Pwln", see 'man lsof' for the meaning of those switches.
Thanks for your reply, it helps!
 
  


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
lsof output description mayrus9 Red Hat 4 07-22-2014 02:45 PM
lsof output not redirecting in a cronjob threezerous Linux - Newbie 3 09-27-2011 06:39 PM
how to read lsof output command many file open by root ??? b-RAM Linux - Newbie 2 10-05-2009 03:40 AM
lsof warning message jsyzghan Linux - Software 1 07-17-2009 06:36 PM
Active connections conundrum involving lsof / netstat output uncle-c Linux - Newbie 8 12-09-2007 11:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:18 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration