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 to buy a HelpDesk & Asset Management... Read More
Microsoft CRM and IBM Lotus Notes Domino seem to be... Read More
Buying accounting software is a major investment. It's an important... Read More
In this short FAQ style article we would like to... Read More
Enabling Chinese input is quick and easy, there are only... Read More
It is a well known fact that Java as a... Read More
Microsoft Great Plains as ERP and Microsoft CRM as... Read More
During the years of our consulting practice, which comes back... Read More
Customer Relationship Management (CRM) is a strategy and processes used... Read More
1. What determines the software price? Is it Per Seat... Read More
I have recently created my first Php program. I wanted... Read More
At the end of XX century, in the late 1990th... Read More
We would like to give you pluses and minuses of... Read More
This article is the fourth of a series of articles... Read More
Using professional icons in your application or website can bring... Read More
If you company is small or mid-size special products or... Read More
Are you lost in the mess of documents that get... Read More
.NET platform does not support multiple inheritance. Do not confuse... Read More
Let's say that you have a software project that's under... Read More
Executive SummaryAn effective plan for entering, cleaning and updating the... Read More
Microsoft Business Solutions Great Plains as new ERP for multinational... Read More
NOTE: Please take time to read on - it may... Read More
Microsoft CRM is CRM answer from Microsoft Business Solutions.The whole... Read More
In the case when you represent mid-size or mid-size-to-large business,... Read More
Finally, you have some time to personalize your desktop with... Read More
Microsoft has never released a service pack for Windows98 SE,... Read More
Spyware is like the new technological nuclear weapon on the... Read More
When you buy a computer, it most likely comes with... Read More
With the advent of 'Service Pack 2' for Windows XP... Read More
Security flaws have long plagued Internet Explorer (IE), the market-dominating... Read More
Since its release in 1987, QuarkXpress had made an immediate... Read More
Looks like Microsoft Great Plains becomes more and more... Read More
So, you've bought a new Macintosh, and now you may... Read More
Hey Guys! Don't raise your eyebrows or fear by hearing... Read More
When reading an article where some term is used often,... Read More
If you copy something from a Web site or elsewhere...... Read More
At the end of XX century, in the late 1990th... Read More
What is Snort?Snort is an open source network intrusion detection... Read More
There are so many different programs that clutter up your... Read More
Microsoft Great Plains is main mid-market application from Microsoft Business... Read More
MicroWorld Technologies, Inc. the leading solutions provider in the area... Read More
What is installation in the language of technology? Installation... Read More
Collaboration SoftwareCollaboration Software, also known as group collaboration software or... Read More
Well, even if the combination might look very unusual, we... Read More
Before being able to choose a secure Internet communication system,... Read More
Finding the best spyware removers to detect and remove spyware... Read More
Spyware and Adware infest over 90 percent of computers in... Read More
Microsoft Great Plains might be considered as ERP platform to... Read More
Microsoft Business Solutions CRM proved to be reliable solution in... Read More
IntroductionPHP can be used for a lot of different things,... Read More
CD and DVD replication is a process that works by... Read More
Vince Lombardi once said that, "The achievements of an organization... Read More
Java has come along a long way. Many would agree... Read More
Microsoft Business Solutions Great Plains is written in Great Plains... Read More
We are in a transition phase in the Managerial Administration... Read More
Background: For many organizations like ours, the interim target of... Read More
MSN messenger is a pretty cool invention. I mean I'm... Read More
Microsoft Business Solutions products: Great Plains, MS CRM, Navision, Axapta,... Read More
Microsoft Business Solutions Great Plains is marketed for mid-size companies... Read More
There are several kinds of software piracy. The bottom line... Read More
Microsoft Business Solutions CRM and IBM Lotus Notes Domino, being... Read More
Microsoft has never released a service pack for Windows98 SE,... Read More
This is intermediate level SQL scripting article for DB Administrator,... Read More
We've all seen the ads on TV for Netzero 3G.... Read More
As of now - Great Plains Dynamics/eEnterprise is transformed/renamed into... Read More
What is RAID RECOVERY?RAID stands for Redundant Array of Inexpensive... Read More
Software |