reset bashrc
/bin/cp /etc/skel/.bashrc ~/
Here is what the above code is Doing:
1. We’re using the os module to run the command “cp /etc/skel/.bashrc ~/”.
2. We’re using the subprocess module to run the command “cp /etc/skel/.bashrc ~/”.
3. We’re using the subprocess module to run the command “cp /etc/skel/.bashrc ~/” and capture the output.
4. We’re using the subprocess module to run the command “cp /etc/skel/.bashrc ~/” and capture the output, and then we’re printing the output.
5. We’re using the subprocess module to run the command “cp /etc/skel/.bashrc ~/” and capture the output, and then we’re printing the output, and then we’re printing the return code.