How to inactivate network service by terminal on mac os x?
15,927
I found the solution this command help me on terminal command line:
networksetup [-setnetworkserviceenabled networkservice on | off]
thanks to (man
) command on terminal that help me to find my way.
To list available services, run:
sudo networksetup -listallnetworkservices
Related videos on Youtube
Author by
Ehsan
Updated on September 18, 2022Comments
-
Ehsan over 1 year
I google but found nothing helpful. the above link was useful when I wanted to create service of any other configuration commands on terminal but I found nothing about how to inactive a service by command line. I could do this by clicking on the button on GUI on System preferences but I need command line command to create script and just click on it to activate or activated 30 service at ones.
-
MaQleod about 10 yearsWill 'ifconfig <iface> down' do the trick?
-
-
Ehsan about 10 yearsNo my question is how to down or up service with command line. Your answer is work on interfaces not services. For showing your network services type this command on your terminal. (networksetup -listnetworkserviceorder)
-
Ehsan about 10 yearsthanks i used your answer and search on terminal by man command and finally find my answer.
-
Shamy about 10 yearsCongrats :D happy for you