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/
move in cleaning service Mundelein ..A few months back I really got sick of my... Read More
Now is the time to look at an alternative to... Read More
I started using PIP (Picture It Publishing) Platinum 2002 right... Read More
SyncUp, a file synchronizer is designed to assist the home... Read More
What is Snort?Snort is an open source network intrusion detection... Read More
Internet worms. Is your PC infected?If your computer has become... Read More
We'll give you non formal view, based on our consulting... Read More
What is IRC?IRC is Internet Relay Chat. It is a... Read More
There are so many different programs that clutter up your... Read More
Looks like Microsoft Great Plains becomes more and more popular,... Read More
Document Manager and Version HistoryIn previous articles I have discussed... Read More
Microsoft Business Solutions Great Plains has substantial market share among... Read More
This article is for advanced Microsoft CRM SDK C# developers.... Read More
Buying accounting software is a major investment. It's an important... Read More
Security flaws have long plagued Internet Explorer (IE), the market-dominating... Read More
Should one use Windows Update?This topic has good and valid... Read More
Microsoft Great Plains is one of the Microsoft Business Solutions... Read More
C++ Function templates are those functions which can handle different... Read More
Several software companies design programs for preventive maintenance. Most of... Read More
Not all of us have the luxury of working both... Read More
Ok... Where to start?Well, I guess I will start at... Read More
Passwords protect your most sensitive personal, financial and business information.... Read More
Microsoft CRM customization techniques are very diversified and based on... Read More
The US House of Representatives has recently passed the "Spy... Read More
The first topic we are going to discuss... Read More
insured cleaning company Highland Park ..Microsoft Business Solutions CRM is web-based CRM application, deploying all... Read More
During the years of our consulting practice, which comes back... Read More
Introduction: The creating of a computer program involves a number... Read More
Enabling Chinese input is quick and easy, there are only... Read More
Remember nice and prosperous Clinton era? When you implemented innovative... Read More
As of now - Great Plains Dynamics/eEnterprise is transformed/renamed into... Read More
Program Flow is what you think it is. How the... Read More
GroupwareEfforts are continually made to manage the unavoidable ad hoc... Read More
Executive SummaryAn effective plan for entering, cleaning and updating the... Read More
Around the same time Microsoft made its move with .Net... Read More
2005 ? Back to the Future.What does the future hold?... Read More
1. Replace Dexterity cursor with SQL Stored Procedure Dexterity... Read More
This is intermediate level SQL scripting article for DB Administrator,... Read More
Microsoft Business Solutions Great Plains serves multiple industries in the... Read More
Beginning with Domino version R4 it has integration with the... Read More
If you are to buy a HelpDesk & Asset Management... Read More
Microsoft Business Solutions Small Business Manager is scaled down Great... Read More
For those who are unclear on the differences between the... Read More
The Software 2005 conference is now a wrap. This conference,... Read More
Linux essentials:It's free for download but you have to pay... Read More
In the case when you represent mid-size or mid-size-to-large business,... Read More
Have you noticed WordPerfect is gearing up for a comeback... Read More
Software development is a risky business.Many software developers are barely... Read More
What is a Web Database?A web database is a database... Read More
Spyware is like the new technological nuclear weapon on the... Read More
Software |