Skip to content

Latest commit

 

History

History
32 lines (23 loc) · 1.33 KB

terminal_cheatsheet.md

File metadata and controls

32 lines (23 loc) · 1.33 KB

Terminal Cheatsheet

Back to Syllabus

The following commands will work in Mac and Linux terminals as well as Windows PowerShell.

Terminal Navigation

Action Command
Display current directory pwd
Show directory contents ls
Change directory cd <directory_name>
Go up a directory cd ..
Create a directory mkdir <directory_name>
Delete a directory rm -r <directory_name>
Move a file or folder mv <filename> <destination>
Cancel current operation ctrl + C / Command + C

Python in the Terminal

Each operating system has a different shortcut for running Python's .py files in the terminal.

Command Mac Linux Windows
py <filename>.py
python3 <filename>.py
python <filename>.py

When these commands are run without a filename, the Python interpreter will run in the terminal.

Back to Syllabus