To show or display available network interfaces in Linux, you can use the ip
command. This command allows you to display and manipulate network interface settings.
To show all available network interfaces, you can use the following syntax:
$ ip addr show
This will display a list of all available network interfaces, along with their IP addresses, netmasks, and other related information.
You can also use the ifconfig
command to show available network interfaces. This command is used to configure network interfaces and display their status.
To show all available network interfaces, you can use the following syntax:
$ ifconfig -a
This will display a list of all available network interfaces, along with their IP addresses, netmasks, and other related information.
You can also use the route
command to show available network interfaces. This command displays the IP routing table, which lists the available network interfaces and their associated routes.
To show the IP routing table, you can use the following syntax:
$ route -n
This will display the IP routing table, including the available network interfaces and their associated routes.
Finally, you can use the netstat
command to show available network interfaces. This command displays network connections, routing tables, and interface statistics.
To show the available network interfaces, you can use the following syntax:
$ netstat -i
This will display a list of all available network interfaces, along with their status and statistics.
You can also use the -n
option with the netstat
command to display the interfaces by their numeric names, rather than their symbolic names.
For example:
$ netstat -ni
This will display a list of all available network interfaces, along with their numeric names, status, and statistics.