Skip to content

Instantly share code, notes, and snippets.

@nicholashoule
Last active November 26, 2019 18:42
Show Gist options
  • Save nicholashoule/b9186b2bd6a9339ee6b4dc1a037706de to your computer and use it in GitHub Desktop.
Save nicholashoule/b9186b2bd6a9339ee6b4dc1a037706de to your computer and use it in GitHub Desktop.
Linux Network information

Linux Network information:

Default gateway:
ip route | awk '/^default/ { print $3 }'
IP:
hostname -I
arp:
arp -n
sudo ip -s -s neigh flush all
Wireless:
# coolest
nmcli dev wifi
Frequency
ifconfig | grep wlp
sudo iwlist wlp4s0 frequency
ssid
iwgetid -r
scanning
sudo iwlist wlp4s0 scan
sudo iw dev wlp4s0 scan
sudo iw dev wlp4s0 scan | egrep 'SSID:' | sed 's|^[[:blank:]]*||g'
sudo iw dev wlp4s0 scan | egrep 'SSID:|signal|^BSS' | sed 's|^[[:blank:]]*||g'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment