RTM/JFTR - How to get an IP address in linux

Tags:

ip -br -c=never -j -f inet a show eth0 |jq -Mr '.[0].addr_info[0].local'

# ip:
#    -br       - brief output
#    -c=never  - no colors
#    -j        - output in json format
#    -f inet   - only include ipv4
# jq:
#    -M        - monochrome/no colors
#    -r        - raw output/no quotes

First Post

Tags:

Welcome To My Blog

This is my first post in the blog of our redesigned website built with Statocles.