News for hackers. Stuff that matters.
Re:There are real reasons for Linux to replace ifconfig, net... by simias on Friday May 25, 2018 @05:45AM (#17151946)
I'm trying hard to fight my old muscle memory to use ip instead of ifconfig on Linux.

I have a few issues though:

* "ip" is useless as a keyword if you're looking for help online. It's extremely frustrating and probably my main issue actually learning how to use the damn thing.

* ifconfig's output is simply more readable IMO: https://svkt.org/~simias/up/20180525-113825_ip-vs-ifconfig.p... . It's pretty weird that a brand new tool manages to have worse output than a venerable old unix command. Because of this I often end up configuring the network with ip only to double-check everything is right with a quick ifconfig. That's silly.

I think at this point I would've preferred if they had made an "ifconfig2" instead, mostly identical to the old one but with a few breaking changes to add the missing functionality. An incremental update instead of a full rewrite. There's definitely some NIH going on.

Re:There are real reasons for Linux to replace ifconfig, net... by isostatic on Friday May 25, 2018 @06:37AM (#17152187)
> ifconfig's output is simply more readable IMO

Yes, this is key, and why ip is so terrible for the way I currently work. No doubt I'll have to get used to it, like those stupid biosdevname interfaces.

90% of my machines don't have more than 1 IP per physical interface, the rest are aliases

ifconfig outputs clear whitespace, so picking out the specific details of

- interface name

- ip address

Is far easier. I do prefer /28 to 255.255.255.240 when specifying subnets, but it does make it far harder to scan what the IP is. I suspect the people writing the utilities are the ones who are able to automate everything, as they do the same job 1000 times, with IP in, IP out, and no concern about physical devices, so rarely use the tool to read data, certainly not as a human.

You've then got the "what's the default gateway" problem

route -n

shows it nice and easy

  Kernel IP routing table
  Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
  0.0.0.0         172.26.32.1     0.0.0.0         UG    0      0        0 eth0
  172.26.32.0     0.0.0.0         255.255.240.0   U     0      0        0 eth0
ip route -n returns

  ip route -n
  Command "-n" is unknown, try "ip route help".
Helpful, ip route help is no help at all

It's all good having tools to manage lots of ip namespaces etc, that's great in the subset of cases you need that functionality, but for those of us that manage physical machines with physical inputs/outputs, rather than datacenter scale devices, it's a right pain.

Re:There are real reasons for Linux to replace ifconfig, net... by pas on Friday May 25, 2018 @06:50AM (#17152289)
to get the gateway: ip route show default

> > ifconfig's output is simply more readable IMO

I prefer iproute2's terseness.

Re:There are real reasons for Linux to replace ifconfig, net... by simias on Friday May 25, 2018 @07:07AM (#17152389)
I'm not sure "terse" is the right adjective. It presents basically the same amount of information as ifconfig (minus the packet counters) and actually adds a few more flags. It's all about the formatting really. Simply adding an empty line between each interface would go a long way. Also starting the line with the interface name instead of the index.

Adding more punctuation to delimit the fields (, : etc...) would be nice too. I mean what the hell:

    mtu 1500 qdisc pfifo_fast qlen 1000
Re:There are real reasons for Linux to replace ifconfig, net... by blattimwind on Friday May 25, 2018 @08:52AM (#17153148)
It sounds a little bit like air traffic control: "roger dev gbe zero niner alpha one you are cleared for proto kernel scope link strip 4 dash 7 F L 11400 gamma zulu src please copy."
Re:There are real reasons for Linux to replace ifconfig, net... by ahartmetz on Friday May 25, 2018 @09:21AM (#17153401)
Huh, does "ip" also support "tc" (traffic control) commands - qdisc is a queueing discipline... tc seems to be the an earlier thing from the people who brought us ip. tc must have the worst command line interface and documentation ever - it is very hard and very frustrating to use, like no other command line interface I've ever seen.

I once tried to use tc and gave up after more than a day of trying, that is how bad it is. The syntax is a word soup and the semantics are very poorly explained.

Re:There are real reasons for Linux to replace ifconfig, net... by pas on Friday May 25, 2018 @09:48AM (#17153645)
ip/ss/tc are all netfilter based things all in the iproute2 repo.

http://inai.de/images/nf-packet-flow.png

tc is implemented by packet pacing at either egress or ingress steps.

and this is how iproute2 compares to the old net-tools stuff: https://linoxide.com/wp-content/uploads/2014/05/Linux-Nettoo...

netfilter: https://en.wikipedia.org/wiki/Netfilter#/media/File:Netfilte...

regarding UI/UX/CLI. yes, there's no arguing about it, it's just horrible. no documentation, no discoverability, no sanity. but it works, and it's free :o

Re:There are real reasons for Linux to replace ifconfig, net... by SEJeff on Friday May 25, 2018 @12:42PM (#17155427)
MegaCLI (lsi hw raid control) sees your tc and raised you a few million awful flags.
Re:There are real reasons for Linux to replace ifconfig, net... by Thlom on Friday May 25, 2018 @05:14PM (#17158047)
After working with it almost daily for years I'm finally fluent in MegaCLI. I can even understand the --help for the most part. Time to get a new job I guess.
Re:There are real reasons for Linux to replace ifconfig, net... by mmt on Saturday May 26, 2018 @01:21AM (#17160368)
Nah.. Just time to relearn it all with StorCLI instead.
Re:There are real reasons for Linux to replace ifconfig, net... by Thlom on Saturday May 26, 2018 @04:24AM (#17160859)
:-(
Re:There are real reasons for Linux to replace ifconfig, net... by trelliscoded on Saturday May 26, 2018 @01:02AM (#17160306)
I see your MegaCLI and raise you certutil: https://docs.microsoft.com/en-us/windows-server/administrati...
Re:There are real reasons for Linux to replace ifconfig, net... by SEJeff on Saturday May 26, 2018 @09:34PM (#17165054)
Oh fair enough but in the context of Linux command lines I think MegaCLI is genuinely one of the worst UX designs ever. Up until recently (post Balmer), Microsoft didn’t heavily emphasize the CLI for most things so a bad UX is not surprising.
Re:There are real reasons for Linux to replace ifconfig, net... by russh on Friday May 25, 2018 @03:20PM (#17157002)
I'm pretty sure MegaCLI was written by someone who used to write software for digital phone switches.
Re:There are real reasons for Linux to replace ifconfig, net... by duskwuff on Friday May 25, 2018 @04:15PM (#17157502)
Ah, my old friend MegaCLI. Simultaneously the most verbose and the most useless --help output I've ever seen from a command-line program.
Re:There are real reasons for Linux to replace ifconfig, net... by OnMyPhone on Friday May 25, 2018 @10:18AM (#17153924)
I spent a bit too long on playing with tc a while ago. The best I could get it was to limit each person's download speeds from the one internet connection we had.

I'm with you on tc having the worst interface and documentation that I have seen from a command before. I spent maybe a few days total on it then gave up because I figured if there isn't much documentation on it, it isn't worth figuring out.

Re:There are real reasons for Linux to replace ifconfig, net... by sanjayjc on Friday May 25, 2018 @03:39PM (#17157164)
I used tc for something interesting once: I setup Cassandra nodes in distinct docker containers running on a single laptop. I installed tc in each container to throttle packets flowing between containers and in so doing, simulated a lossy, high latency WAN network. The goal was to evaluate how Cassandra fared as network latencies increased.

tc fit the bill nicely.

Re:There are real reasons for Linux to replace ifconfig, net... by nineteen999 on Sunday May 27, 2018 @10:04PM (#17170223)
Did you remember to disable your swap file/partition?

https://stackoverflow.com/questions/22988824/why-swap-needs-...

Re:There are real reasons for Linux to replace ifconfig, net... by isostatic on Friday May 25, 2018 @07:28AM (#17152502)
So glad I'm not the only one with the same criticisms
Re:There are real reasons for Linux to replace ifconfig, net... by pas on Friday May 25, 2018 @09:53AM (#17153695)
I think the problem is, that these tools lack the extended human friendly output. They work well for those who use them regularly, but there's no `ip --explain`. Alas Linux and the kernel is famous for having very barebones or bloated and useless documentation.
Re:There are real reasons for Linux to replace ifconfig, net... by kees99 on Friday May 25, 2018 @09:14AM (#17153326)
I can take "mtu 1500" part, and sort-of "qdisc", but what's up with repeating obscure parameters at their default values, for each and IP address:

  valid_lft forever preferred_lft forever
Re:There are real reasons for Linux to replace ifconfig, net... by pas on Friday May 25, 2018 @09:51AM (#17153665)
Those are lifetimes for default (outgoing) address selection.

RFC 3484 "Default Address Selection for Internet Protocol version 6 (IPv6)".

Re:There are real reasons for Linux to replace ifconfig, net... by Izkata on Friday May 25, 2018 @08:15AM (#17152815)
That just shows its user-unfriendliness further. Here's a more readable version of the output:

> ip route | column -t

(With iproute2 4.3.0, I get the same output between "route", "route show", and "route show default"; no idea if it's changed since.)

Re:There are real reasons for Linux to replace ifconfig, net... by lomnakkus on Friday May 25, 2018 @04:33PM (#17157685)
Wow. That's actually kind of a tiny little brilliant gem that remains to be discovered by many. I, for one, had never though about trying this.

Alas it doesn't work quite so well for "ip addr". It would have been great if they'd just decided on CSV or JSON or whatever and then relied on secondary utilities to go to "pretty-printed".

Re:There are real reasons for Linux to replace ifconfig, net... by Izkata on Saturday May 26, 2018 @02:45AM (#17160581)
Somewhere else in here, someone else mentioned that "ip" has "--oneline", which does seem to work decently, at least for the first couple columns:

   ip --oneline addr | column -t
Re:There are real reasons for Linux to replace ifconfig, net... by kees99 on Friday May 25, 2018 @09:17AM (#17153358)
When asking "what's the default gateway?", more often than not, the real question you have is "what's the gateway to IP address X", which would be:

  ip route get X
Re:There are real reasons for Linux to replace ifconfig, net... by isostatic on Friday May 25, 2018 @11:16AM (#17154484)
No it's not, it's usually "What is the default gateway on this network segment because I want to plug my laptop in"

I do use ip route a fair bit - if I have a machine connected to two (or more) network segments and want to ensure traffic gets routed back the way it came

However my main criticism for "ip route" is that it's inconsistent and a change route "route"

"route" does reverse dns lookups - e.g "my.server.tld rather than "1.2.3.4", or "default" rather than "0.0.0.0"

"route -n" shows 1.2.3.4

"ip route" doesn't do reverse lookup, however it does say "default" rather than "0.0.0.0".

Re:There are real reasons for Linux to replace ifconfig, net... by gsich on Friday May 25, 2018 @01:51PM (#17156230)
Then reask: whats the gateway to 0.0.0.0/0
Re:There are real reasons for Linux to replace ifconfig, net... by viraptor on Friday May 25, 2018 @06:02AM (#17152006)
> "ip" is useless as a keyword

Most docs will mention iproute2. You can use that for googling.

Re:There are real reasons for Linux to replace ifconfig, net... by rootbear on Friday May 25, 2018 @09:08AM (#17153271)
On my CentOS 7 system, there is no iproute2 package, but there is an iproute package. Neither 'man iproute' nor 'man iproute2' produce any man pages. The iproute package provides the contents of /etc/iproute2, among other things, so why is the package name just iproute? The man page for ip has the name iproute2 at the very bottom, where it is easily missed. It would never have occurred to me to look for either iproute or iproute2 for information on ip had I not come across this posting. A little consistency of naming, with better cross referencing, would sure be nice...
Re:There are real reasons for Linux to replace ifconfig, net... by JackCh on Friday May 25, 2018 @11:20AM (#17154527)
What you're describing seems like an inexcusable state of affairs, but as a practical matter `man -k <search term>` or `apropos <search term>` is useful for finding poorly named manpages.

Of course in the specific case of "ip", both are going to return quite a haystack to search through...

Re:There are real reasons for Linux to replace ifconfig, net... by xupybd on Friday May 25, 2018 @06:55AM (#17152316)
Yeah that’s what I loved about this article, I finally know what to google.
Re:There are real reasons for Linux to replace ifconfig, net... by Izkata on Friday May 25, 2018 @08:25AM (#17152888)
Future tip: your package manager should be able to find this for you, for example:

> $ which ip

> /sbin/ip

> $ dpkg -S /sbin/ip

> iproute2: /sbin/ip

Re:There are real reasons for Linux to replace ifconfig, net... by amyjess on Friday May 25, 2018 @11:38AM (#17154728)
You may also want 'whereis' instead of 'which'.

I use cope to colorize my output, which makes 'which' useless to me for most common commands, but 'whereis' still works.

Edit for examples:

    $ which ip
    /usr/share/perl5/vendor_perl/auto/share/dist/Cope/ip
    $ whereis ip
    ip: /usr/bin/ip /usr/share/perl5/vendor_perl/auto/share/dist/Cope/ip /usr/share/man/man7/ip.7.gz /usr/share/man/man8/ip.8.gz
Re:There are real reasons for Linux to replace ifconfig, net... by twic on Tuesday May 29, 2018 @01:42PM (#17181325)
In bash, there's also:

    command -V
Which knows about aliases and functions as well:

    $ command -V ip
    ip is /sbin/ip
    $ command -V ll
    ll is aliased to `ls -AlF --color=auto'
    $ command -V command_not_found_handle
    command_not_found_handle is a function
    command_not_found_handle ()
    {
        if [ -x /usr/lib/command-not-found ]; then
            /usr/lib/command-not-found -- "$1";
            return $?;
        else
            if [ -x /usr/share/command-not-found/command-not-found ]; then
                /usr/share/command-not-found/command-not-found -- "$1";
                return $?;
            else
                printf "%s: command not found\n" "$1" 1>&2;
                return 127;
            fi;
        fi
    }
Re:There are real reasons for Linux to replace ifconfig, net... by 8_hours_ago on Friday May 25, 2018 @04:53PM (#17157879)
> whereis

Thanks for this! After 14+ years of using Linux almost daily, I had never heard of this command. I learned something new today, so now it's time to go home!

Re:There are real reasons for Linux to replace ifconfig, net... by ssebastianj on Friday May 25, 2018 @06:21PM (#17158547)
Yeah, I recently "discovered" the commands 'whatis' [0] and 'apropos' [1] and my experience learning Linux improved quite a bit.

[0] https://linux.die.net/man/1/whatis

[1] https://linux.die.net/man/1/apropos

Re:There are real reasons for Linux to replace ifconfig, net... by cjcampbell on Friday May 25, 2018 @10:44PM (#17159892)
Thanks for passing those on as well!
Re:There are real reasons for Linux to replace ifconfig, net... by yaleman on Friday May 25, 2018 @08:47AM (#17153110)
I finally found out how to get netstat on these dang new systemd machines! :)
Re:There are real reasons for Linux to replace ifconfig, net... by simias on Friday May 25, 2018 @07:01AM (#17152354)
That's a good tip, thanks.

That being said while docs specifically written about the tool will probably mention it random forum posts, tutorials or even stackoverflow questions may not.

Re:There are real reasons for Linux to replace ifconfig, net... by erikb on Friday May 25, 2018 @08:21AM (#17152862)
> "ip" is useless as a keyword if you're looking for help online.

I don't know the decisions behind the naming either, but the ip shell command comes as part of the iproute2 [1] package.

After I found out about this googling became much easier.

[1] https://en.wikipedia.org/wiki/Iproute2

Re:There are real reasons for Linux to replace ifconfig, net... by da_chicken on Friday May 25, 2018 @10:25AM (#17153990)
Well, sure, but assume you're new and you don't know that. You can usually search for "man ip" to get close, but that usually just gets you a technical reference for an experienced user (the man page) and not a tutorial, introduction, or training doc for someone learning a new tool. "ip command tutorial" works well, though the results are still rather mixed. I get Cisco and Windows results as well until I search "ip command tutorial linux".

The point is that searching for "ifconfig tutorial" is going to give you what you want, while "ip route" is probably going to get you Cisco documentation, honestly. Even something like "parse ip output" is going to give you a mix of results from Linux, Windows, or web services while "parse ifconfig output" is a lot more clear.

"ip" is simply a saturated keyword, making it a bad keyword.

Re:There are real reasons for Linux to replace ifconfig, net... by erikb on Friday May 25, 2018 @01:30PM (#17155993)
Not sure why you think I would disagree. I'd say that is exactly my opinion, so I wanted to share that googlable term with the other frustated people out there.
Re:There are real reasons for Linux to replace ifconfig, net... by da_chicken on Saturday May 26, 2018 @01:26AM (#17160382)
I don't think you'd disagree. I just think, "Well, you could search for iproute2," isn't that helpful because it's not that obvious that that is the package name.
Re:There are real reasons for Linux to replace ifconfig, net... by Faaak on Friday May 25, 2018 @05:55AM (#17151987)
Exactly. Even the `ip` name is misleading as the command does much more than only ip-related things (link layer, network namespaces, tcp, …).
Re:There are real reasons for Linux to replace ifconfig, net... by nailer on Friday May 25, 2018 @11:15AM (#17154465)
Always wondered about this - is IP 'internet protocol' or something else, since it's much lower level than IP? I've been using IP route 15 for 15, maybe 20 years now and hinestly have no idea.
Re:There are real reasons for Linux to replace ifconfig, net... by sverige on Friday May 25, 2018 @03:01PM (#17156862)
Re:There are real reasons for Linux to replace ifconfig, net... by nailer on Friday May 25, 2018 @06:48PM (#17158775)
I know what IP is. Your reference doesn't answer the question as to whether 'ip' means IP.
Re:There are real reasons for Linux to replace ifconfig, net... by digi_owl on Friday May 25, 2018 @10:28AM (#17154018)
Poking at ip and its sub-commands reminds me of poking at the serial interface of a Cisco router, and not in any pleasant way...
Re:There are real reasons for Linux to replace ifconfig, net... by emmelaich on Friday May 25, 2018 @06:39AM (#17152205)
The man page is good.

`ip` takes a --oneline arg to make it more parseable.

Re:There are real reasons for Linux to replace ifconfig, net... by simias on Friday May 25, 2018 @06:57AM (#17152329)
I'm not sure having everything crammed into a single line makes it better (at least if a human is supposed to parse it and not a machine): https://svkt.org/~simias/up/20180525-125636_ip-vs-ifconfig-2...
Re:There are real reasons for Linux to replace ifconfig, net... by bayindirh on Friday May 25, 2018 @07:37AM (#17152566)
I have used ip -oneline to parse configuration of servers, and it's really practical.

The only real gripe I have with IP is their long argument/switch format. Unlike everyone else, ip is a minority, which accepts long options with single dash "-". This prevents someone from combining many short parameters under a single dash, also it's confusing to use.

Yes, it unofficially supports the old double dash format, but if you are supporting it, there's no point in supporting single dash long options.

Re:There are real reasons for Linux to replace ifconfig, net... by rootbear on Friday May 25, 2018 @09:13AM (#17153320)
This is ridiculous. I would love to know their justification for using single dash for long options. When did that become the "old way"?? Very old X11 commands and many Solaris commands use a single dash, but nearly all modern commands use double dash. And I agree that this syntax makes it hard to combine single-character options. They must have had a very compelling reason to use a non-standard option syntax.
Re:There are real reasons for Linux to replace ifconfig, net... by brian_cunnie on Friday May 25, 2018 @11:47AM (#17154817)
The Golang flag [0] package uses a single dash for long options.

The flags that a UNIX command uses can sometimes used to carbon-date that command. For example, dd(1) doesn't use a dash at all, uses long args, and uses an equals-sign to connect a flag with its argument (e.g. `dd if=/dev/null`). It's because dd(1) was written in the dawn of UNIX, before a convention was established for flags.

I believe the first step in creating a convention was the introduction of the getopt(3) library, which introduced single dash, single character options (e.g. `tar -x`). Commands that only have short options tend to be old commands.

Later, GNU introduced getopt_long(3), which allowed for long options and double-dashes to distinguish them from the short ones. This made commands more readable.

There have also been cases where the `-` is optional. `tar xvf` for example. And with the `ps` command, the `-` is used to distinguish BSD flags from System V flags (e.g. `ps auxwww` vs. `ps -elf`).

There has also been a movement for subcommands rather than options (which bring to mind the Cisco CLI), of which `ip` is an excellent example: `ip route show`. But subcommands are not a substitute for options; sometimes you need both (e.g. `ip -6 route show`).

All this goes to show that, although long options are quite common, they are not only game in town, and UNIX commands have a rich and varied set of conventions.

[0] https://golang.org/pkg/flag/

Re:There are real reasons for Linux to replace ifconfig, net... by rootbear on Friday May 25, 2018 @01:41PM (#17156143)
The dd syntax is meant to mirror that of the IBM JCL command dd, and it may have been meant as a joke.

Old versions of sort used a + to begin some options. So yes, there has been a lot of variation over time, but I see no reason to gratuitously diverge from the common standards now in use, unless following them is too restrictive in some way.

Re:There are real reasons for Linux to replace ifconfig, net... by 65a on Friday May 25, 2018 @10:38PM (#17159867)
Re: Go, it describes the flags with a single dash, but it will accept them with a double dash and a more traditional style (both --string "foo" and -string="foo" are accepted, for instance)
Re:There are real reasons for Linux to replace ifconfig, net... by bayindirh on Sunday May 27, 2018 @06:02PM (#17169333)
Accepting everything at the same time is very nice in theory, but in the optimal case, the library should be able to mimic at least some established conventions.

Extreme flexibility becomes a burden after a certain point if it lacks adaptability.

Standards are built for these reasons.

Re:There are real reasons for Linux to replace ifconfig, net... by emmelaich on Wednesday May 30, 2018 @05:55AM (#17186398)
For tar, x,t,c are commands not options.

For the `find` command the single dash is for predicates not for options (not that it makes a whole lot of difference)

Re:There are real reasons for Linux to replace ifconfig, net... by emmelaich on Wednesday May 30, 2018 @05:53AM (#17186390)
There's an old school of programmers who resist double dash for long opts. Partly for historical reasons.

You'll find them in ex-Bell labs people (e.g. go-lang) and associated (docker).

The double dash was born in the 90s; there was a poll on Usenet gnu.misc (or similar). Those who did not habituate usenet didn't get the memo.

Re:There are real reasons for Linux to replace ifconfig, net... by foo101 on Friday May 25, 2018 @11:19AM (#17154515)
openssl uses single dash for long options too: -inform, -outform, -text, -noout, etc.

gcc uses single dash for long options too: -std, -pedantic, -dumpspecs, etc.

I am sure there are many more modern commands that do this.

Re:There are real reasons for Linux to replace ifconfig, net... by sllabres on Friday May 25, 2018 @01:38PM (#17156099)
As most applications older than a year are called legacy nowadays gcc (~30 YO) or openssl (~20 YO) are not what comes into my mind when asked for "modern" commands.

Neither are for 'dd' or 'tar' (probably 30 YO) from the other comment.

There are probably other, younger commands not following the --long-option pattern, but i think that doesn't make it better to break this convention.

Re:There are real reasons for Linux to replace ifconfig, net... by yellowapple on Friday May 25, 2018 @10:26AM (#17153993)
The only other place I've seen single-dash long options be the norm is within TCL scripts (where that's conventional whenever a proc takes named arguments/options).
Re:There are real reasons for Linux to replace ifconfig, net... by hiccuphippo on Friday May 25, 2018 @11:20AM (#17154522)
A --json arg would be much more parseable. I wonder if they'd be against that?
Re:There are real reasons for Linux to replace ifconfig, net... by sdfgdfhjdgj on Friday May 25, 2018 @12:15PM (#17155153)
They won't. In fact it is already implemented. Try `ip -json addr`.

Not all subcommands support it though.

Re:There are real reasons for Linux to replace ifconfig, net... by twic on Tuesday May 29, 2018 @01:49PM (#17181396)
There's another universe near ours where libxo caught on widely, and every command supports text and JSON output out of the box:

https://juniper.github.io/libxo/libxo-manual.html

Re:There are real reasons for Linux to replace ifconfig, net... by rascul on Friday May 25, 2018 @06:32PM (#17158646)
Which version has implemented this? It's not available here.

  rascul@coyote:~$ ip -json addr
  Option "-json" is unknown, try "ip -help".
  rascul@coyote:~$ ip -V
  ip utility, iproute2-ss160111
Re:There are real reasons for Linux to replace ifconfig, net... by rascul on Friday May 25, 2018 @11:32PM (#17160044)
Looks like it was added in August of last year. Obviously newer than what my distribution has.

https://git.kernel.org/pub/scm/network/iproute2/iproute2.git...

Re:There are real reasons for Linux to replace ifconfig, net... by Willwhatley on Friday May 25, 2018 @10:03AM (#17153784)
NIH doesn't seem to make sense as "next of hop" or "not in here", and search for this initialism is obfuscated by the National Institute of Health.

Mind expanding NIH?

Re:There are real reasons for Linux to replace ifconfig, net... by phab on Friday May 25, 2018 @10:04AM (#17153797)
Re:There are real reasons for Linux to replace ifconfig, net... by h1d on Friday May 25, 2018 @10:19AM (#17153936)
Better to avoid vague grammars when not everyone is a native English speaker.
Re:There are real reasons for Linux to replace ifconfig, net... by nailer on Friday May 25, 2018 @11:16AM (#17154476)
Re:There are real reasons for Linux to replace ifconfig, net... by h1d on Friday May 25, 2018 @10:14AM (#17153884)
I think google is smart enough that you search with "ip command" (maybe plus "linux", it'll get relevant results.

It's better that the command you type often is short, (you can certainly alias ifconfig as "ifg" or anything too).

Re:There are real reasons for Linux to replace ifconfig, net... by simias on Friday May 25, 2018 @12:26PM (#17155278)
Maybe you're better at googling than I am but I've had serious issues with that. The problem is that there are way too many false positives for any query containing "ip" regarding networking. And even looking at the excerpts on the search results page it's not always obvious if "ip" refers to the command or something else.

Take for instance a very simple query: "ip show default route":

https://duckduckgo.com/?q=ip+command+show+default+route&t=ff...

There are a few obviously relevant matches in the first page but also a bunch of completely irrelevant results. Adding "command" doesn't improve that much. And that's for a very simple query that's probably been asked hundreds of times before.

Meanwhile if I search "ls sort date" I get mostly relevant results immediately because even though it's also a 2 letter identifier it's not quite as ambiguous: https://duckduckgo.com/?q=ls+sort+date&t=ffab&ia=qa

Re:There are real reasons for Linux to replace ifconfig, net... by foo101 on Friday May 25, 2018 @11:24AM (#17154572)
Yes, DDG gets relevant results too: https://ddg.gg/?q="ip+command"
Re:There are real reasons for Linux to replace ifconfig, net... by bjourne on Friday May 25, 2018 @02:55PM (#17156819)
Re:There are real reasons for Linux to replace ifconfig, net... by segmondy on Friday May 25, 2018 @09:31AM (#17153484)
Yeah, that's if you even have "ip" Was using one of Redhat's base image the other day and there was no "ip" installed, we tried all the tricks in the book searching through /proc to find the ipv4 for a new interface, and we couldn't, we could easily grab the ipv6. Ended up writing some code to grab it using python. :-/
Re:There are real reasons for Linux to replace ifconfig, net... by damm on Friday May 25, 2018 @09:13PM (#17159504)
If only ifconfig was standardized on the output... it's output has changed over time

Let alone the non-conformity of other OS's like Solaris, HP-UX which really might not matter now. I'm sure FreeBSD matters to someone... just not me

Re:There are real reasons for Linux to replace ifconfig, net... by dabockster on Friday May 25, 2018 @03:10PM (#17156940)
It could also be preserved as a legacy flag.

  ifconfig -L
(I don't know if this is already taken. I haven't read the man pages in forever.)
Re:There are real reasons for Linux to replace ifconfig, net... by brazzledazzle on Friday May 25, 2018 @09:23AM (#17153420)
I love how much shorter and terse the output is with iproute2. I reach for it a lot on my mac and get a bit sad when it’s not there.
Re:There are real reasons for Linux to replace ifconfig, net... by djsumdog on Friday May 25, 2018 @10:15AM (#17153896)
I've always thought the same thing. ip addr's output sucks compared to ifconfig.

Looking at it more closely now, ip addr's output doesn't seem that difficult to fix. Remove that random number before the adapter name (what the hell is that anyway? The order in which the adapter appeared? If so, why are not in that order?)

I think that alone would make it so much more readable! Maybe white space between each entry with a flag?

All of the help sections are awful too. I feel like I'm looking at language grammar definition instead of useful usage information.

Re:There are real reasons for Linux to replace ifconfig, net... by lathiat on Friday May 25, 2018 @11:04AM (#17154375)
It’s the interface index which is mostly an incrmsenfing number. That can become important for sub interfaces and others things that may reference it. Though they could reference by name instead.
Re:There are real reasons for Linux to replace ifconfig, net... by tzakrajs on Friday May 25, 2018 @04:44PM (#17157786)
If you like India Pale Ale, then the handy "ip a" command might come second nature to you. Sounds weird, but this mnemonic was what I needed to get on board.