6. E213 Cheatsheet¶
6.1. Useful shell commands¶
command |
Mac/Linux |
Windows |
create a directory |
mkdir dirname |
mkdir dirname |
|
cd dirname |
cd dirname |
list contents of a directory |
ls * |
dir |
current folder |
. (i.e. period) |
. (i.e. period) |
cd up one folder |
cd .. |
cd .. |
6.2. Useful git commands¶
git clone https://github.com/phaustin/eosc213_students.git
(clone the course repo)git fetch
(get new updates)git reset --hard origin/master
(sync the new updates into your local repo – note there are two hyphens in front of hard)
6.3. Useful debugger commands¶
To open the debugger anywhere:
import pdb
Then put this line where you want to stop:
pdb.set_trace()