Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New -br (brief) formatting option #28

Open
nickbeee opened this issue Jan 10, 2019 · 1 comment
Open

New -br (brief) formatting option #28

nickbeee opened this issue Jan 10, 2019 · 1 comment
Assignees

Comments

@nickbeee
Copy link

nickbeee commented Jan 10, 2019

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
Copy link
Owner

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

@dmbaturin dmbaturin self-assigned this Jan 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants