Answer the question
In order to leave comments, you need to log in
Is it possible to draw a conclusion?
Good day!
Is it possible to display in Linux the name of the configuration file located in /etc/sysconfig/network-scripts/ of the active network interface?
Answer the question
In order to leave comments, you need to log in
It's not quite clear what you mean by active interface (there can be several and all will be active). But, as an option, if anything, then with the help of nmcli you can quite flexibly view and manage network connections.
Here, for example, the command
will output
Well, or if only the file name (for some script, for example), then it
will return the file name without extra lines
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question