PC & IT SUPPORT MADE EASY FORUM
Would you like to react to this message? Create an account in a few clicks or log in to continue.

IfTop For Linux

Go down

IfTop For Linux Empty IfTop For Linux

Post by jamied_uk 9th June 2018, 13:21



Code:
sudo apt install -y iftop


Code:
sudo iftop -i enp0s3

Code:
sudo iftop -i eth0

Code:
sudo iftop -i tun0
jamied_uk
jamied_uk
Admin

Posts : 3053
Join date : 2010-05-09
Age : 41
Location : UK

https://jnet.sytes.net

Back to top Go down

IfTop For Linux Empty Re: IfTop For Linux

Post by jamied_uk 9th June 2018, 13:42





Code:
#!/bin/bash
# (c) J~Net 2018
#
# jnet.forumotion.com/t1632-iftop-for-linux#2512
#
# Example ./iftop.sh enp0s3
#
#
#
#
myvar="$1"
#
if [ -z "$1" ]
  then
   echo "Enter Network To Monitor For Example:"
   echo "enp0s3 or eth0 or tun0 Or wlan0"
   read myvar
fi



sudo iftop -i "$myvar"

Code:
./iftop.sh eth0
jamied_uk
jamied_uk
Admin

Posts : 3053
Join date : 2010-05-09
Age : 41
Location : UK

https://jnet.sytes.net

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum