Write the following scripts for BOTH windows and linux copy and paste the text o
ID: 3703396 • Letter: W
Question
Write the following scripts for BOTH windows and linux copy and paste the text of the scripts below.
1. Copy all files from your Downloads folder into a Folder on your Desktop named downloads_backup
2. Launch a web browser to docs.python.org, launch IDLE in edit mode, and open a folder on your desktop named python_programs
3. Delete the contents of your temporary folder. These folders are in different locations per user on both Linux and Windows, so do some research to find the correct one. The correct folders should be somewhere in the Users directory.
Explanation / Answer
Linux command:
1)To copy the files from one folder to another:cp ~/Download ~/Desktop/downloads_backup
2)To launch or open a web browser:xdg-open http://docs.python.org
To launch idle in edit mode:sudo apt-get install idle3
idle.py [-c command] [-e] [-s] [-t title] [arg] ...
-c command run this command
-e edit mode;
-s run $IDLESTARTUP or $PYTHONSTARTUP first
-t title set title of shell window
To open a folder:cd /home/"username"/Desktop/python_programs
To view all the file:ls python_programs
3)To remove the temporary files:
cd /tmp/
pwd
sudo rm -r *
Windows command:
1)To copy the files from one folder to another:xcopy c:usersuser_namedownloads c:usersuser_namedesktopdownloads_backup
2)To open a browser:start chrome https://docs.python.org
To open a folder:cd c:usersuser_nameDesktoppython_programs
3)To remove temporary files:
rd /s /q %temp%
mkdir %temp%
rd /s /q c:windows emp
mkdir c:windows emp
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.