Friday, May 3, 2024
 Popular · Latest · Hot · Upcoming
8
rated 0 times [  8] [ 0]  / answers: 1 / hits: 515  / 2 Years ago, wed, march 2, 2022, 4:04:51

I have been experimenting with Linux recently and I've come across a dev argument in some commands when dealing with networks. E.g.:




  • ip link set dev wlan0 up/down



  • ip link set dev wlan0 address XXX



  • nmcli dev show wlan0



The ip link commands seem to work without the dev argument as well. For nmcli I think it lets the system know that I'm talking about a device, and I guess that it has a similar purpose for ip link. I'm slightly confused why it's there if it works without it though.


Did ip used to need it, but now it's "smarter" or is it something different?


More From » networking

 Answers
2

For the ip command dev has no meaning. Most likely it was used as an example in the context of having to specify the actual device on which the ip command should work (like wlan0).


In the nmcli command dev is a shortcut for specifying the full option name device in the command.


[#856] Thursday, March 3, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
uestred

Total Points: 464
Total Questions: 104
Total Answers: 112

Location: Israel
Member since Wed, Apr 14, 2021
3 Years ago
;