Skip to content

Instantly share code, notes, and snippets.

@u1-liquid
Created December 25, 2023 21:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save u1-liquid/d0e420cf8c8684ed95f6406d4683172f to your computer and use it in GitHub Desktop.
Save u1-liquid/d0e420cf8c8684ed95f6406d4683172f to your computer and use it in GitHub Desktop.
Find IPv4 from Filesystem
#!/bin/sh
# https://unix.stackexchange.com/a/522127
cat /proc/net/fib_trie | awk '/32 host/ { print f } {f=$2}' | sort | uniq | grep -v 127.0.0.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment