The documentation states that
ifquery --list
gives a list of all interfaces specified in /etc/network/interfaces
(and includes). In fact in both Debian Jessie and Ubuntu 14.04 it lists all interfaces that have auto INTERFACENAME
stanza and skips those without auto
line.
Is there a way to list all interfaces that have iface NAME
stanza using ifquery?
No, using ip link list
doesn't do the trick because the interface specified in /etc/network/interfaces
does not have to exist when ifquery
is called.
As stated in another answer
ifconfig -a
will take you there. However,ifconfig
resides in/sbin
directory, which is not included inPATH
for regular users on most platforms and it may be too verbose for your purpose.The alternative is
which is available to regular users.
Though some think it is a bit dated (what's wrong with tried and true?), I like to use the following to quickly see all network interfaces:
It's part of the net-tools package, exists on pretty much all linux distros since a couple of decades and normally is installed by default.