ubuntu reset path 1

ubuntu reset path

$ /usr/bin/cat /etc/environment

PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games"

Here is what the above code is Doing:
1. We’re using the subprocess module to run the cat command on the /etc/environment file.
2. We’re using the check_output() function to run the command and store the output in the output variable.
3. We’re using the decode() function to convert the output from bytes to a string.
4. We’re using the print() function to print the output.

Similar Posts