[shell/alias] add ping via ipv6 & specifying interface

This commit is contained in:
Felix Buehler 2021-01-11 11:39:51 +01:00
parent 98911134db
commit a227792f69

View file

@ -133,5 +133,11 @@ dpms(){
# - likely to experience if connected via wifi and ethernet
# - xargs it to nmap at the end
alias snet="ip addr | \\grep -v "inet6" | \\grep inet | cut -d \" \" -f 6 | \\grep -v '127\\.0\\.[0-1]\\.[0-1]' | xargs -n 1 ipcalc | awk '/Network:/{print \$2}' | sort -u | xargs nmap"
for INTERFACE in $(ls /sys/class/net); do
alias ping-all-$INTERFACE="ping -6 ff02::1%$INTERFACE"
alias ping-routes-$INTERFACE="ping -6 ff02::2%$INTERFACE"
done
alias sort-by-size="du -hsc * | sort -hk1"
#END alias-definitions