get mac address ubuntu 1

get mac address ubuntu

ip link show

Here is what the above code is Doing:
1. We’re importing the subprocess module, which allows us to run shell commands.
2. We’re creating a variable called “command” and assigning it the value of the shell command we want to run.
3. We’re running the shell command using the subprocess.check_output() function.
4. We’re printing the output of the shell command.

Similar Posts