Skip to content

Instantly share code, notes, and snippets.

@PyaeSoneAungRgn
Created October 13, 2023 03:10
Show Gist options
  • Save PyaeSoneAungRgn/abcffb820cc1928eaab3cc5efae2d407 to your computer and use it in GitHub Desktop.
Save PyaeSoneAungRgn/abcffb820cc1928eaab3cc5efae2d407 to your computer and use it in GitHub Desktop.
Get subnet mask
ip -o -f inet addr show | awk '/scope global/ {print $4}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment