reseph
reseph

Reputation:

Bash command (netstat etc) to show overview of packet transfer?

Let's say I have a Linux machine that is being bogged down by some network traffic. Might be someone FTPing a large file to it, a bunch of people downloading a large file, etc.

What are some options I could use to determine this? I've looked over say the netstat man but I'm not sure if this would be exactly what I need. It could at least tell me the ports so I could tell if it's FTP or not, but wouldn't help if say a file was being DLed.

Upvotes: 1

Views: 1810

Answers (3)

Amir Afghani
Amir Afghani

Reputation: 38531

You have several options here depending on what it is exactly that you're trying to measure. I'm guessing it's simply network traffic in bytes:

tcpdump

tcptrace

Install netglance.

Upvotes: 1

Javier
Javier

Reputation: 62583

Upvotes: 3

eduffy
eduffy

Reputation: 40224

You could poke around /proc/net or take a look at wireshark.

Upvotes: 0

Related Questions