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/
post construction cleaning Wilmette ...Small can be beautiful! Working with Knoppix for the past... Read More
Although we don't know whether Microsoft ever envisioned such a... Read More
In today's business world it's all but impossible to escape... Read More
#5 All your hardware components like Printers, PCs etc come... Read More
This article is for advanced Microsoft CRM SDK C# developers.... Read More
Microsoft Business Solutions main middle market ERP application - Microsoft... Read More
In linux, one of great commands for finding out information... Read More
When you first think about multicurrency ? you probably have... Read More
Remember nice and prosperous Clinton era? When you implemented innovative... Read More
To all web designers out there, this article is for... Read More
Lotus Domino/Notes ? Microsoft Great Plains tandem as ERP with... Read More
Handling character strings in Java is supported through two final... Read More
IBM Lotus Domino or Microsoft Exchange?The severe competition continues for... Read More
Microsoft Great Plains is one of three Microsoft Business Solutions... Read More
Disclaimer: All the thoughts expressed are my views only! Your... Read More
Do you want to get quality software at a reasonable... Read More
Are you ready? SQL Server 2005, the next-generation data management... Read More
Innovative Maintenance Systems (IMS) is one company that offers solutions... Read More
It would be easy to think, like most people apparently... Read More
This article illustrates the best practices to improve the performance... Read More
It is now common thing when large corporation selects mid-market... Read More
Most people don't use Photoshop to its fullest capabilities. Here... Read More
Since Version 8.0 Microsoft Business Solutions Great Plains & Great... Read More
Microsoft Great Plains is now standard mid-market ERP application, serving... Read More
How do you run a program on a remote server... Read More
luxury cleaning services Lincolnshire ...Hi, Guys,I believe a lot of programmers are trying to... Read More
eStore Advantage allows front-office applications to communicate with back-office business... Read More
Microsoft Business Solutions Great Plains was designed back in the... Read More
The purpose of one of our projects was MS Exchange... Read More
Fortunately one of the most common reasons cited for the... Read More
We live in a post-industrial age where information is the... Read More
Microsoft Great Plains, former Great Plains Software Dynamics / eEnterprise... Read More
This article will not attempt to advocate the use of... Read More
A LOT OF UNWANTED FILES.When you uninstall an item of... Read More
Microsoft Great Plains is becoming more and more popular and... Read More
It is really interesting that a bug can create problem... Read More
Small can be beautiful! Working with Knoppix for the past... Read More
Microsoft Great Plains is main accounting / ERP application... Read More
If you have Great Plains Dynamics/eEnterprise (version 6.0 or earlier)... Read More
Now is the time to look at an alternative to... Read More
This article is the third of a series of articles... Read More
In a previous article, I wrote about OpenOffice... Read More
The title of "software engineer" has got to be among... Read More
Innovative Maintenance Systems (IMS) is one company that offers solutions... Read More
Microsoft bought Navision, Denmark based software development company, along with... Read More
Linux essentials:It's free for download but you have to pay... Read More
Disclaimer: All the thoughts expressed are my views only! Your... Read More
Microsoft Business Solutions Great Plains is marketed for mid-size companies... Read More
SyncUp, a file synchronizer is designed to assist the home... Read More
Which Type of Shop Can Rely On A Home Built... Read More
Software |