On Tue, Jul 29, 2014 at 08:41:27PM +0000, Alessandro Selli wrote: > ----- Messaggio da lsore...@csclub.uwaterloo.ca --------- > Data: Tue, 29 Jul 2014 14:41:32 -0400 > Da: Lennart Sorensen <lsore...@csclub.uwaterloo.ca> > Rispondi-A:"This is the lpi-examdev mailing list." <lpi-examdev@lpi.org> > Oggetto: Re: [lpi-examdev] Remove from 201 > A: "This is the lpi-examdev mailing list." <lpi-examdev@lpi.org> > > > > On Tue, Jul 29, 2014 at 01:55:41PM -0400, Bryan J Smith wrote: > >> Are we using ifconfig and netstat? > >> Or are we generation ip and ss now? > >> > >> /me runs ;) > > > > I was thinking the same thing. Who uses ifconfig anymore? or route > > for that matter. > > A *large* number of people, including some package maintainers who > still write scripts with ifconfig, route, arp, back-ticks for command > substitution, iwconfig, for I in (seq $A $B) constructs and lots more > of ancient and deprecated technology. > > E.g.: > > [alessandro@hal9k ~]$ grep ifconfig /etc/init.d/* > /etc/init.d/bind9: if [ -z "$(/sbin/ifconfig $IFCONFIG_OPTS)" ]; then > [alessandro@hal9k ~]$ lsb_release -d > Description: Debian GNU/Linux 7.6 (wheezy) > [alessandro@hal9k ~]$ > > > Old habits die hard.
Sure. But the dreadful inefficiencies of ifconfig (which uses /proc) compared to ip (which uses netlink) is just painful. Maybe only people doing embedded work actually care about efficiencies anymore. I haven't checked what the ip command does on bsd, which Debian does also try to support. Maybe there would be problems there. -- Len Sorensen _______________________________________________ lpi-examdev mailing list lpi-examdev@lpi.org http://list.lpi.org/cgi-bin/mailman/listinfo/lpi-examdev