netstat - Linux Command to Display Networking Information - myoddPc

Computer Information - myOddPc

netstat - Linux Command to Display Networking Information

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.netstatUsing 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/

Ken Dennis

Sony PSP - Not Just For Games

Zen and the Art of Buying Computer Parts
The Ugly Face Of Technology
Wind Turbine Lights to Protect Birds
Robotic Manufacturing Lighting
Is that software really free?
Tips on Finding the Best CD Duplication Services
Making the Most of Digital Camera Memory Cards
Microsoft Dynamics GP & CRM in Transportation & Logistics
Computer Dos and Donts
Sony PSP - Not Just For Games

SyncUp – A File/Folder Synchronizer For Windows

Basic Tips and tricks for Windows XP
Buying the Perfect Computer – The FIRST Time
Dirty Little Computer Viruses and How To Protect Yourself
10 Secrets to a Healthy Computer and a Happier You
8 Simple Ways to Defend Against Evil Doers Both Online and Off
Microsoft CRM Programming Secrets – Tips For Developers
Microsoft Great Plains Integration with Legacy Systems – Overview For Developer
Microsoft RMS – Great Plains Integration – Overview For IT Specialist
Removing Incoming Email in MS Exchange, C# Example
SyncUp – A File/Folder Synchronizer For Windows

Articles by the same author

SSH (SCP) Send Files from Windows to Your Linux Box
About Microsoft Sysprep (System Preparation) Utility (Windows 2000)
Intro to UNIX Shells
Adware and Spyware
Internet Relay Chat - A Basic Introduction
Instant Messenger Clients
USB Key Drives - Useful Tool
netstat - Linux Command to Display Networking Information
Quick Summary of Basic and Common Linux Commands
FTP - File Transfer Protocol Explained
USB Drives - What to Look For in a USB Device
Digital Cameras, Media, and Card Readers
Reduce Pop-ups and Annoying Ads
Tripwire for Linux File Integrity
Snort for Network IDS
Save Your Resources - Combine Your IM Clients
Anti-Virus Software
Deleting and Destroying Data Forever
USB Drive Popularity
Laptop and Notebook Theft Prevention

Disclaimer

Please note that this website is for information only. Whilst every care has been taken to provide accurate information you should always seek the advice of a professional before attempting any repairs or making any purchase(s).
You need to take special care to ensure that the information given applies your system.

Family travel
Online categorized travel services worldwide directory.

Credit Card
Credit card information and advice from the experts at Money Expert.com
marker About Us | Site Map | Privacy Policy | Contact Us | ©2005-2006