2014-02-06 + HW

posted Feb 5, 2014, 10:14 PM by Samuel Konstantinovich   [ updated Feb 3, 2015, 8:41 PM ]

Goal: Lots of clerical stuff, and linux directory heirarchy

Make a tree diagram of your home computer's directory structure. This will differ for windows and mac users. Include the important locations that you save your files. You cannot put in all of the directories, but you can get an idea of what your folder structure looks like. Bring it in tomorrow, with your name PRINTED on it. 
If you want to make it look good, try a free diagram site like: https://www.gliffy.com

Do Now: (1-4)
1 - How do you change directly to your home directory?
2 - If your current directory is /your.name/Documents , what commands could you type ine the command line to change to /your.name/Desktop?
3 - If you were a superuser that had to create tom's directory to look like this:
What sequence of terminal commands would create this directory structure? List the commands in order. Assume you start in /home/
4 - What are two ways you can open a file in any operating system you have used?

New Commands:
  • cp sourceFileName targetFileName - copy will make a copy of the source file, and name it target.
  • mv sourceFileName targetFileName - mv will move the source file to the target file.
  • touch fileName - will modify the timestamp of a file to the current time, if the file doesn't exist it will create an empty file.
  • sourceFileName and targetFileName can be a full path e.g. cp ~/test.temp /home/other/what.txt

Important Links: (hand copy into your notebooks, then bookmark in your browsers)

Homework Server:
  • This server marks how early or late your submission is
  • The most recent upload replaces all priors (including if you add a comment)
  • After you submit an assignment, it is your responsibility to verify that it was submitted.
  • Right now: Log into the homework server. Your 4-digit ID is your password.
  • Update your profile on the homework server:
    • nickname
    • email
    • password
  • Close your browser, open it again, and test your new password.
  • Password safety*: Do not lose your password. Keep your password secure, write it down somewhere, and keep it safely hidden.

To change your password in the CS LAB:  
  • In the terminal, type in the command "yppasswd" without the quotation marks.
  • Follow the directions as you are prompted
  • Be careful as the password is invisible as you type it. This means you don't see a bunch of *'s as you type( ****** )
  • Backspace works as you would expect
  • Log out and log back in to test your new password.
  • *See password safety protocols from the homework server post above.