Linux command to operate network connections

Following commands can give network connections information,

  1. # netstat -tulpan
  2. # lsof –i

Command#1 (netstat –tulpan) will give you connections information, but I did not find any way to kill connection after get information from it.

Command#2 (lsof –i) will give you useful connections information and PID of connections as well. You can kill that session using PID.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s