linux distributions command line 1

linux distributions command line

$ uname -a

Here is what the above code is Doing:
1. We’re using the subprocess module to run the uname command.
2. We’re using the check_output() function to run the command.
3. We’re passing the -a flag to the uname command.
4. We’re storing the output of the command in the output variable.
5. We’re printing the output variable.

Similar Posts