Session 1: Welcome to Python!
Objective:
Lesson Plan:
Commonly used Unix commands:
| Command | Action | Example |
|---|---|---|
| ls | Lists the contents of your current directory. A directory is similar to a file cabinet, it holds both folders and files. | ls or ll |
| cd | Changes your directory. | cd Documents |
| mkdir | Makes a directory. | mkdir CS_Notes |
| pwd | Prints your current directory | pwd |
| man | Allows you to read the manual page for different commands. | man cd |
| cp | Copies a file and gives it the name of your choosing. Must use -r when copying directories. | cp original.py copy.py |
| mv | Moves files. | mv filename.doc Documents |
| rm | **Careful! This command deletes the file of your choosing. Once you use this command, the file is gone! There are no warnings. |
rm file_name.doc |
| less | Shows what is inside of a file. Press q to quit. | less myfile.py |
File to Download:
Please do not download until told to do so
Tips for using the Terminal:
Change your account password:
Accessing PyCharm:
Creating a new Python Project:
Congratulations! Session 1 is complete. Click here to return to the schedule.