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.

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/

HSphere Control Panel Tips and Tricks - Power At Your Fingertips: Part 1

The first topic we are going to discuss is email. HSPHERE (the software... Read More

Troubleshoot Windows with Task Manager

Task Manager is a Windows system utility that displays thetasks or processes currently running on... Read More

Is Your Computer Sick?

Viruses and spyware usually show up on your computer one of two ways.Either they invade... Read More

Software Piracy

SOFTWARE PIRACY We regularly hear reports about the cost to the... Read More

What to Do if All Screensavers Fun is Grayed Out?

Finally, you have some time to personalize your desktop with an interesting screensaver. But wait...... Read More

Microsoft Great Plains on Ctree or Pervasive SQL ? What to Do ? Tips for IT Manager

As you probably know, when Microsoft purchased Great Plains Software ? the whole strategy for... Read More

Spyware, What is it?

Spyware, what it is and what it does. Basically, spyware is a program put on... Read More

Most Dangerous Types of Spyware are on the Rise: How to Choose the Weapon

Bad News - the Threat is Bigger than it SeemedHow recently it was ? when... Read More

IT Department Skills to Support Microsoft Great Plains and Microsoft CRM

Microsoft Great Plains as ERP and Microsoft CRM as Client Relation Management system is... Read More

Groove Network. Are you in it?

If you are in a business that passes documents around to be reviewed and edited... Read More

Microsoft Axapta, Navision or Great Plains: ERP Selection for Large Corporation

If you would like to pick something from Microsoft, or its ERP subdivision ? Microsoft... Read More

What is Spyware? Are You Being Watched?

Find out why Spyware Removal from computers is important and how adware infestations affect your... Read More

C++ Tutorials: 3, Program Flow (If, Else, While, For)

Program Flow is what you think it is. How the program will flow. As you... Read More

Microsoft Great Plains Customization Tools ? Overview

Former Great Plains Software Dynamics/eEnterprise, and currently Microsoft Business Solutions Great Plains was initially designed... Read More

Pros and Cons of Using FREE Software in Your Business

It???s easy to understand why you might be drawn to the allure of free software.... Read More

Data Quality Best Practices for Salesforce.com

Executive SummaryAn effective plan for entering, cleaning and updating the data for your salesforce.com (SFDC)... Read More

Does Microsoft have any real competition?

Does Microsoft Have any Real Competition? Copyright (c) 2003 Gregory S. Diehl In a word,... Read More

SyncUp ? A File/Folder Synchronizer For Windows

SyncUp, a file synchronizer is designed to assist the home and advanced users. The product... Read More

Microsoft Great Plains Integration Manager: Using Continuum ? Overview for Developer

Microsoft Business Solutions Great Plains has I'd say end user integration tool ? Great Plains... Read More

Five Steps to Rapid Development with TierDeveloper 4.0

Follow the steps below to quickly design, generate, and deploy a great portion of your... Read More

A Simple Computer Software Definition

What is Software?Software is a set of instruction written to interface between man and machine.Who... Read More

Microsoft Great Plains international implementation ? USA / Mexico ? overview for consultant

Microsoft Business Solutions Great Plains was purchased from Great Plains Software and Great Plains Software... Read More

Corporate ERP: Microsoft Great Plains For The Plant In Brazil ? Overview For CIO

Microsoft Business Solutions Great Plains as new ERP for multinational corporation manufacturing facility in Brazil.If... Read More

Microsoft and Webmasters

Does Microsoft care for WebmastersIt's always been a problem with websites appearing exactly the same... Read More

CRM and Customer Life Cycle

Customer Relationship Management or CRM is a combination of enterprise strategies, business processes and information... Read More

Microsoft Great Plains Implementation for Midsize & Large Corporation: Lockbox Processing

Microsoft Great Plains is now targeting large and midsize businesses and being matured ERP has... Read More

Microsoft Great Plains Integration with Microsoft Access ? Overview for Developer

Microsoft Business Solutions stakes on... Read More

Microsoft Great Plains Customization: Project Organization ? International Business Example

Microsoft Business Solutions Great Plains fits to majority of horizontal niches and clientele in the... Read More

How the Firefox: How to... Manual Helped Me

A few months back I really got sick of my computer always being slow and... Read More

Is Your Family Protected?

When you think about Security, what do you... Read More

Running a Program on a Remote Server Using SSH

How do you run a program on a remote server using ssh?For this example we'll... Read More

Software For Your Hard-Drive

All your software is stored on a hard-drive. But how about software FOR your hard-drive... Read More

Groupware: Answers the 5 Questions of Document Collaboration

Every organization which creates collaborative documents, whether they are budgets, presentations, reports, spreadsheets, or other... Read More

Making The Decision To Automate Your Software Testing

Not every software testing project can or should be automated. Before your department accepts a... Read More

Free PDF Publishing Software

In a previous article, I wrote about OpenOffice which an excellent suite of... Read More

Reduce Pop-ups and Annoying Ads

There is many things more frustrating than surfing a website only to have your screen... Read More

Software Tools To Help Your Business Sell More

Sales are all about leverage, because there is only so much you can do on... Read More

Two Reasons to Use Timesheet Software

This short paper will expand on two key reasons to move to a computerized timesheet... Read More

Microsoft Great Plains Data Conversion ? Overview For Developer

Looks like Microsoft Great Plains becomes more and more popular, partly because of Microsoft muscles... Read More

Kick-Ass Performance For Your PC? Its Easy

Is your PC is slow and wimpy? Then you need some PC steroids - software... Read More

Do You Want Your Own Fully Programmable ERP? - Part 1

We are in a transition phase in the Managerial Administration models of any company or... Read More

Great Plains Dynamics/eEnterprise Upgrade ? Things to Consider and FAQ

If you have Great Plains Dynamics/eEnterprise (version 6.0 or earlier) and support it for your... Read More

Great Plains DOS Support ? Notes for Consultant

Great Plains Accounting, accounting package for mid-size and small companies was in its peak of... Read More

EDI: Electronic Document Interchange for Microsoft Great Plains ? Overview for Software Developer/Pr

Microsoft Great Plains - Microsoft Business Solutions accounting and ERP system, originally targeted to mid-size... Read More

Online PowerPoint Presentation ? Convert PowerPoint to Flash

Although we don't know whether Microsoft ever envisioned such a big market about PowerPoint on... Read More

Microsoft Great Plains Integration Manager ? Advanced Techniques

Great Plains Integration Manager scripting and translation - overview for programmer, software developer, ... Read More

Microsoft Great Plains Implementation & Customization: Computer Parts Retailer Example

Microsoft Great Plains fits to majority of horizontals and retail business is good fit as... Read More

Navision Attain Database access via C/ODBC in ASP.NET Application

Navision Software was purchased by Microsoft and now it is supported by Microsoft Business Solutions... Read More

How to Build a Basic CSS Layout

Designing without tables by using CSS layouts is fast becoming the new standard on the... Read More

Recovering Microsoft Great Plains Customization ? Tips for IT Director

Remember nice and prosperous Clinton era? When you implemented innovative those old days accounting application... Read More