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/
Dowagiac prom limousines .. Lockport Chicago limo O’HareSmall can be beautiful! Working with Knoppix for the past... Read More
Some introduction into Great Plains Software products, now Microsoft Business... Read More
Do you want to get quality software at a reasonable... Read More
Spyware and malware are large problems for Internet users today... Read More
CD and DVD replication is a process that works by... Read More
Configuring PPP PAP AuthenticationNow we know how the ISDN link... Read More
When my daughter was getting into AOL instant messaging (AIM)... Read More
Stop the Runaway MouseWhat's the "runaway mouse?" You've seen it...you... Read More
This article will not attempt to advocate the use of... Read More
XML parser is a software module to read documents and... Read More
So let's begin crunching down these 300 images using Adobe... Read More
Microsoft Great Plains, former Great Plains Software Dynamics, eEnterprise has... Read More
Microsoft SQL Server is the leader for inexpensive and middle... Read More
Microsoft Business Solutions main middle market ERP application - Microsoft... Read More
This article is the third of a series of articles... Read More
Enabling Chinese input is quick and easy, there are only... Read More
The Windows Indexing Service provides you with the ability to... Read More
If you are software developer or database administrator - we... Read More
Since Version 8.0 Microsoft Business Solutions Great Plains & Great... Read More
Crystal Reports is the most flexible tool on the market... Read More
Microsoft Business Solutions Great Plains is very popular ERP platform... Read More
The various resume software offered, particularly on the internet, can... Read More
We are in a transition phase in the Managerial Administration... Read More
The most important benefit of XML is its simplicity. Though... Read More
I have yet to see a business that, sometimes in... Read More
shuttle from O'Hare Lake Villa ..Pirated software is on the increase and now accounts for... Read More
Since Version 8.0 Microsoft Business Solutions Great Plains & Great... Read More
Now there are Three Steps To Heaven Just listen and... Read More
Microsoft Business Solutions Great Plains serves multiple industries in the... Read More
Microsoft has never released a service pack for Windows98 SE,... Read More
The research in the field of Natural Language Processing usually... Read More
Configuring PPP PAP AuthenticationNow we know how the ISDN link... Read More
When my daughter was getting into AOL instant messaging (AIM)... Read More
The intuitive algorithm.Roger Penrose considered it impossible. Thinking could never... Read More
Microsoft Outlook is one of the most widely used software... Read More
Microsoft Retail Management System serves retail single store as well... Read More
Corporate ERP/MRP selection might be tough one, especially considering very... Read More
Program Flow is what you think it is. How the... Read More
Music downloads are off the charts! We're listening to digital... Read More
Microsoft Business Solutions main middle market ERP application - Microsoft... Read More
Looking at all the ads which promise to get rid... Read More
Writing software manuals is boring, isn't it? We often think:... Read More
In the new era of internet marketing the problem of... Read More
Bad News - the Threat is Bigger than it SeemedHow... Read More
Microsoft Business Solutions Great Plains is marketed for mid-size companies... Read More
Healthcare facilities such as clinics, hospitals, and biomedical laboratories can... Read More
We live in a post-industrial age where information is the... Read More
IntroductionPHP can be used for a lot of different things,... Read More
Microsoft Great Plains ? ERM from Microsoft Business Solutions and... Read More
I have always regretted how Microsoft price gouges and rips... Read More
Software |