From d139f2f123c9c69c9ce943f25e9d56469421b67a Mon Sep 17 00:00:00 2001 From: Phil Date: Thu, 24 Mar 2022 20:04:14 +0000 Subject: [PATCH] Added list all IPs --- .bash_aliases | 1 + 1 file changed, 1 insertion(+) diff --git a/.bash_aliases b/.bash_aliases index ced7962..70eff88 100644 --- a/.bash_aliases +++ b/.bash_aliases @@ -253,6 +253,7 @@ extract() { alias cyberchef="open /opt/cyberchef/cyberchef" # Local IP lookup +alias ips="ip a | grep -Eo 'inet (addr:)?([0-9]*\.){3}[0-9]*' | grep -Eo '([0-9]*\.){3}[0-9]*' | grep -v '127.0.0.1'" alias eth0="ip a s eth0 | grep -Eo 'inet (addr:)?([0-9]*\.){3}[0-9]*' | grep -Eo '([0-9]*\.){3}[0-9]*'" alias eth1="ip a s eth1 | grep -Eo 'inet (addr:)?([0-9]*\.){3}[0-9]*' | grep -Eo '([0-9]*\.){3}[0-9]*'" alias wlan0="ip a s wlan0 | grep -Eo 'inet (addr:)?([0-9]*\.){3}[0-9]*' | grep -Eo '([0-9]*\.){3}[0-9]*'"