dmbaturin / iproute2-cheatsheet

iproute2 command reference
https://baturin.org/docs/iproute2
427 stars 88 forks source link

New -br (brief) formatting option #28

Open nickbeee opened 5 years ago

nickbeee commented 5 years ago

Newer versions of iproute2 have the -br[ief] command line switch. This should be used as the first switch immediately after the command.

Some examples:

[nick@alarmpi-2 ~]$ ip -br addr show
lo               UNKNOWN        127.0.0.1/8 ::1/128 
eth0             UP             192.0.2.1/24 2001:db8:200:84:ba27:ebff:fe68:5f03/64 fe80::ba27:ebff:fe68:5f03/64 
[nick@alarmpi-2 ~]$ ip -br  -4 addr show
lo               UNKNOWN        127.0.0.1/8 
eth0             UP             192.0.2.1/24 
[nick@alarmpi-2 ~]$ ip -br link show
lo               UNKNOWN        00:00:00:00:00:00  
eth0             UP             b8:27:eb:68:5f:03  

Makes a big improvement to the formatting for these commands in particular! I'm not sure whether this should be documented in it's own section or added to the respective sections I have used in the above examples.

dmbaturin commented 5 years ago

That's a good idea! I will add a paragaph on useful options.