change root directory command prompt 1

change root directory command prompt

cd \

Here is what the above code is Doing:
1. We’re using the subprocess module to run the command line command “cd”
2. We’re using the subprocess module to run the command line command “ls”
3. We’re using the subprocess module to run the command line command “cd ..”

Similar Posts