Skip to content

network – How can I tell if I’m on WiFi versus Wired networking from a shell script?

  • by
Spread the love

I have written a script that does a periodic upload of a large file to the cloud. However, I do not want it to run unless I’m on wired networking.

Is there a way via the command line that you could determine if you’re on wired versus wireless networking?

Leave a Reply

Your email address will not be published. Required fields are marked *