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/
reliable maid service Highland Park ..Well, even if the combination might look very unusual, we... Read More
If you've been using MySQL database to store your important... Read More
Think of this, first we had the HAM Radio, then... Read More
Writing software manuals is boring, isn't it? We often think:... Read More
Ad-Aware and Spybot are probably the two most well known... Read More
Microsoft Business Solutions Great Plains is very popular ERP platform... Read More
For those who still don't know, Microsoft Publisher helps computer... Read More
Following tips help you to learn a software in lesser... Read More
Microsoft Business Solutions main middle market ERP application - Microsoft... Read More
We were recently faced with a decision: either to let... Read More
Heard about the Quark "killer"?Adobe InDesign CS2. Will it really... Read More
(1) Avoid using the same variable again and again for... Read More
Manufacturing in the USA is far away down from mid... Read More
I have always had a tendency to focus on the... Read More
Microsoft Great Plains has full-featured Manufacturing suite of modules: Capacity... Read More
In this small article we will show you the possible... Read More
While several preventive maintenance software manufacturers offer free trials for... Read More
Did you ever give a thought to the number of... Read More
Hey Guys! Don't raise your eyebrows or fear by hearing... Read More
During the years of our consulting practice, which comes back... Read More
Now is the time to look at an alternative to... Read More
You would like to protect your documents, wouldn't you? Reasons... Read More
Customer Relationship Management (CRM) is a strategy and processes used... Read More
This tutorial covers OLAP solutions used by Data warehouses and... Read More
Find out why Spyware Removal from computers is important and... Read More
house cleaning company Lincolnshire ..The Windows registry is a huge database that ensures normal... Read More
No matter how much you enjoy your favorite screensavers, sometimes... Read More
Microsoft Business Solutions Great Plains is very popular ERP platform... Read More
I have always regretted how Microsoft price gouges and rips... Read More
Customer Relationship Management, abbreviated "CRM," is the term for a... Read More
Microsoft CRM is relatively new player on the now becoming... Read More
Microsoft Retail Management (RMS) and Microsoft Great Plains are retail... Read More
If you are in a business that passes documents around... Read More
While I was preparing some personal background information for a... Read More
This is intermediate level SQL scripting article for DB Administrator,... Read More
The vast majority of us will have, at some point,... Read More
... Read More
Microsoft Business Solutions CRM is now approaching the phase of... Read More
Microsoft Great Plains ? ERM from Microsoft Business Solutions and... Read More
XML Server can be a Web Server that stores the... Read More
While I was in college, if you would have asked... Read More
Designing without tables by using CSS layouts is fast becoming... Read More
If there still are few unprotected computers left, I haven't... Read More
Combining Microsoft Business Solutions Great Plains ERP with non-Microsoft Business... Read More
Innovative Maintenance Systems (IMS) is one company that offers solutions... Read More
Microsoft Business Solutions Great Plains has several options to enable... Read More
To all web designers out there, this article is for... Read More
Case study: A secretary using Corel WordPerfect 7 is often... Read More
Anyone who has ever used Microsoft Word knows that it... Read More
Whether you are an experienced web programmer or a complete... Read More
Software |