IfTop For Linux

Go down

IfTop For Linux

Post by jamied_uk on 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
avatar
jamied_uk
Admin

Posts : 2427
Join date : 2010-05-09
Age : 35
Location : UK

http://address-shortner.co.uk

Back to top Go down

Re: IfTop For Linux

Post by jamied_uk on 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
avatar
jamied_uk
Admin

Posts : 2427
Join date : 2010-05-09
Age : 35
Location : UK

http://address-shortner.co.uk

Back to top Go down

Back to top

- Similar topics

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