Skip to content

New -br (brief) formatting option #28

Open
@nickbeee

Description

@nickbeee

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions