Skip to content

Instantly share code, notes, and snippets.

@ezhov-da
Last active March 19, 2020 08:15
Show Gist options
  • Save ezhov-da/3a8f0e2337df51952362bfc9ef2b46d1 to your computer and use it in GitHub Desktop.
Save ezhov-da/3a8f0e2337df51952362bfc9ef2b46d1 to your computer and use it in GitHub Desktop.
Вывод IPv4 адреса
==> https://habr.com/ru/company/itsumma/blog/492932/
Вывод IPv4 адреса:
ifconfig wlp3s0 | grep inet | grep -v inet6 | awk '{ print $2 }'
ifconfig wlp3s0 | awk ' $1 == "inet" { print $2 }'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment