How can I retrieve from the command line or bash(or a shell script) only the name of the active network interface, in Linux? If there are several active interfaces, I want just one (selected arbitrarily).
Deleted invalid label from title; added clarifying information from comments; improved tags.
G-Man Says 'Reinstate Monica'
- 24k
- 29
- 76
- 130