Lecture 11 (The only review!)

posted Feb 14, 2013, 6:18 AM by Samuel Konstantinovich   [ updated Feb 14, 2013, 12:51 PM ]
As stated previously: tomorrow's exam covers everything we have learned so far. You are expected to be able to:
 Read/write/understand basic HTML, 
 Use the command line to work with your files, 
 Write basic functions in Python 

A few Python Functions will be discussed in class, along with good coding practices, and alternate solutions to some of the problems. Also you should try some Python tutorials and write more Python code to practice!

Since you had a lot more practice with HTML, ,the focus will be on the terminal commands.

Do now: Commands!
Here are some things to do (ALL FROM THE TERMINAL)
1. Pick any HTML file on your website. Copy that file from your public_html directory to your desktop.
2. Make a directory on your desktop called tempfiles, then move the file you copied in step 1, into that new folder. 
3. Display the contents of that file on the terminal. 
4. cd into your home directory. Make a directory on your desktop from here. 

Now on paper use the following to help you write the commands 1-5:

(Do not assume your starting directory for this assignment)Write a sequence of terminal commands that would:
Assume the root directory is /home/
1. create a thesis directory under /home/rweasley/
2. Copy the spells from harry potter, and put them in your newly created directory.
3. Delete the intro.txt file. 
4. rename that copied spell text file as 'superspells.txt'
(remember that renaming is the same as moving)
5. Run the command that changes your password.