mirror of
https://github.com/Stunkymonkey/dotfiles.git
synced 2025-05-24 11:04:41 +02:00
[shell/alias] add ping via ipv6 & specifying interface
This commit is contained in:
parent
98911134db
commit
a227792f69
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue