mirror of
https://github.com/serghey-rodin/vesta.git
synced 2024-12-11 06:40:47 -08:00
41 lines
1.1 KiB
Bash
Executable File
41 lines
1.1 KiB
Bash
Executable File
#!/bin/bash
|
|
# info: list system network status
|
|
# options: [FORMAT]
|
|
#
|
|
# The function lists network status
|
|
|
|
|
|
#----------------------------------------------------------#
|
|
# Variable&Function #
|
|
#----------------------------------------------------------#
|
|
|
|
# Argument definition
|
|
#format=${1-shell}
|
|
|
|
# Includes
|
|
#source $VESTA/func/main.sh
|
|
|
|
|
|
#----------------------------------------------------------#
|
|
# Action #
|
|
#----------------------------------------------------------#
|
|
|
|
# Displaying network stats
|
|
ss -s
|
|
echo -en "\n-------------------------------------"
|
|
echo -en "-------------------------------------\n\n"
|
|
|
|
# Displaying network usage
|
|
lsof -itcp -n -P
|
|
echo -en "\n-------------------------------------"
|
|
echo -en "-------------------------------------\n\n"
|
|
|
|
# Displaying network interfaces
|
|
ifconfig
|
|
|
|
#----------------------------------------------------------#
|
|
# Vesta #
|
|
#----------------------------------------------------------#
|
|
|
|
exit
|