To get internet connection information .

sudo /bin/netstat -tpee
To get the connection information of protocol tcp and extended infortmation.
Sample Output
sudo /bin/netstat -tpee
Active Internet connections (w/o servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       User       Inode      PID/Program name
tcp        0      0 localhost:16001         localhost:43797         ESTABLISHED root       13943      3244/esd
tcp        0      0 ESTABLISHED bhaskar    115800     3993/firefox
tcp        0      0   maa03s01-in-f1:www-http ESTABLISHED bhaskar    102184     4426/thunderbird-bi
tcp        0      0 ESTABLISHED bhaskar    116478     3993/firefox
tcp        0      0 ESTABLISHED bhaskar    115801     3993/firefox
tcp        0      0   maa03s01-in-f19.g:https ESTABLISHED bhaskar    117306     3993/firefox
tcp        0      0 ESTABLISHED bhaskar    116487     3993/firefox
tcp        0      0   maa03s01-in-f1:www-http ESTABLISHED bhaskar    115833     4426/thunderbird-bi
tcp        0      0 TIME_WAIT   root       0          -
tcp        0      0   maa03s01-in-f147.:https ESTABLISHED bhaskar    116498     3993/firefox
tcp        0      0 ESTABLISHED bhaskar    117112     3993/firefox
tcp        0      0 localhost:43797         localhost:16001         ESTABLISHED bhaskar    13942      3993/firefox

2009-08-28 04:02:10

What Others Think

a little more description here would have provided some insight as to what you are trying to accomplish with the command. thanks
linuxrawkstar · 634 weeks and 5 days ago

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this? is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands

Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.


Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: