News for hackers. Stuff that matters.
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.