ip is a *nix command for viewing networking information of the host. It’s a better version of ifconfig that is present on modern Linux systems.
You may abbreviate a subcommand as long as it is unambiguous.
For example,
ip a,ip addr, andip addressare all equivalent, since there is no other subcommand that starts witha.
Common oneliners:
# List network interfaces and associated IP addresses
ip a # / addr / address
# Show routing table
ip r # / routeSee Interpreting ip link and address command output to understand the output of ip addr.