In linux, one of great commands for finding out information about your network connections is "netstat". It provides you interface information, statistics, connections, and a lot of other really great information about your computer.
There are many intricate commands that you can use with this program, and I won't be discussing all of them. If you would like a full review of the program, check your man or info files for more information. Below I will discuss the basic and most commonly used commands with netstat.
netstat -i (interface)
This command will give you an overview of networking on your PC. It will give you your local loopback (lo) and any network cards in your PC. This information is useful, so later you can specify a specific network interface card (NIC) that you wish to gain information on.
netstat
Using netstat alone, will give you some pretty good quick information. It gives you a list of active connections, the protocol that it is using, local and foreign address and the state of the connection. More often than not, you will not just use netstat by itself, most people add -a which gives you all listings, including ports that are actively listening.
netstat -s (statistics)
The statistics command gives you a load of great information about the data passing through your computer. It's broken down in to several main categories, IP, ICMP, TCP, UDP, and TCPEXT. Basically this command gives you a quick summery of your total packets and different kinds of connections and activities. It will give you information on failed packets, malformed packets and much more.
netstat -ap (all and process information / pid)
This is really an excellent command for finding the bulk of the information you want in a hurry. The -a gives you a full listing of all listening and active connections, and the -p gives you the process information, process name, and the pid of the program. This of course helps you trouble shoot or kill a program should you require to do so. It's also a handy way to find and kill pids that you might deem questionable by yours users.
netstat -c (continuous listing of command)
This is a pretty basic feature of the netstat command, all it does is continuously outputs the netstat data you requested over and over, every second. This is a neat little way to monitor your connections if you have a feeling something sneaky might be going on. Just leave a prompt open and running this command if you are in xwindows. Keep in mind the constant refresh will use up some processor time though.
netstat -e (extended listing)
This gives you just that little bit more information about your connections and processes. There isn't a huge difference, the primary differences you will notice right off the bat are it shows the user running the command, and the inode of the program.
Ken Dennis http://KenDennis-RSS.homeip.net/
![]() |
|
![]() |
|
![]() |
|
![]() |
If you are in a business that passes documents around... Read More
Microsoft Great Plains fits to majority of industries, in the... Read More
Looks like Microsoft Great Plains becomes more and more... Read More
Microsoft Business Solutions Great Plains was designed back in the... Read More
Not every software testing project can or should be automated.... Read More
The first topic we are going to discuss... Read More
Today's business world is fast-paced. No matter what it is... Read More
I love new technology. I am still ready to wait... Read More
Although statistics often is blamed for various deadly sins --... Read More
During the years of our consulting practice, which comes back... Read More
Viruses and spyware usually show up on your computer one... Read More
I provide, here clear explanations and a count of function... Read More
In this short FAQ style article we would like to... Read More
GroupwareEfforts are continually made to manage the unavoidable ad hoc... Read More
CD and DVD replication is a process that works by... Read More
Microsoft CRM has built-in conversion tool, however you should probably... Read More
Microsoft Business Solutions main middle market ERP application - Microsoft... Read More
You have gotten those E_Mails buy software at deep discounts.... Read More
Heard about the Quark "killer"?Adobe InDesign CS2. Will it really... Read More
Intro This concise article will tell you in plain English... Read More
Hi, Guys,I believe a lot of programmers are trying to... Read More
Our hosted solution allow you to run your own search... Read More
Need software to record your voice, streaming audio or musical... Read More
If you are software developer or database administrator - we... Read More
ERP (Enterprise Resource Planning) Overview covers What is ERP, Brief... Read More
Finding the best spyware removers to detect and remove spyware... Read More
Software development is a risky business.Many software developers are barely... Read More
Enabling Chinese input is quick and easy, there are only... Read More
In the real world a "fire wall" is a fireproof... Read More
Microsoft Retail Management System serves retail single store as well... Read More
Shareware is software that you can try before you buy;... Read More
Document Management or Enterprise Information Management is perhaps one of... Read More
No matter how much you enjoy your favorite screensavers, sometimes... Read More
Microsoft CRM is winning market share step-by-step from such the... Read More
Introduction: The creating of a computer program involves a number... Read More
It could just be me, but my experiences with document... Read More
It is really interesting that a bug can create problem... Read More
C++ Function templates are those functions which can handle different... Read More
It is now common thing when large corporation selects mid-market... Read More
IntroductionDuring the early years of our modern computer era, very... Read More
Microsoft Great Plains and Microsoft CRM become more and more... Read More
ERP is the acronym of Enterprise Resource Planning. Multi-module ERP... Read More
Collaboration SoftwareCollaboration Software, also known as group collaboration software or... Read More
If you are to buy a HelpDesk & Asset Management... Read More
The Software 2005 conference is now a wrap. This conference,... Read More
Currently Microsoft Business Solutions is on the way of creating... Read More
The destruction of the Soviet Union about 15 years ago,... Read More
Using professional icons in your application or website can bring... Read More
I like my software simple. If it's too complex or... Read More
In part III of this ISDN primer, we learned that... Read More
SAP Inc., a global leader in client/server enterprise application software... Read More
The first thing that you will notice about Linux Red... Read More
I provide, here clear explanations and a count of function... Read More
There are many commands that are used in linux on... Read More
Looks like Microsoft Great Plains becomes more and more popular,... Read More
We all take the computer for granted. I mean, all... Read More
If you have been running Windows XP for a couple... Read More
Anyone who has ever used Microsoft Word knows that it... Read More
In the previous ISDN article, we looked at how and... Read More
When making a decision to buy any piece of software... Read More
As seeing large number of implementations ? in our case... Read More
Costs of fleet maintenance software can vary widely. It is... Read More
Microsoft PowerPoint has dramatically changed the way in which academic... Read More
Does Microsoft care for WebmastersIt's always been a problem with... Read More
Microsoft Business Solutions CRM is present several years on the... Read More
Scrapbooks are very popular these days. I think that almost... Read More
Software |