─=≡Σ((( つ•̀ω•́)つ CS Bootcamp 2020

Day 6

Using the command line

Note: Please do not copy and paste the .Theadditionofthe sign is a convention that indicates that the code is

$ ls Lists out all of the files in the current directory (Mac users only)

$ ls -a Lists out all files that are named "a" (Mac users only)

$ dir Lists out all of the files in the current directory (Windows users only)

$ dir -a Lists out all files that are named "a" (Windows users only)

$ cd directory_name Go to "directory_name"

$ cd - Go to the previous directory

$ cd Goes to the "home" directory

$ cat filename Used to preview file contents

$ python3 filename.py Runs the .py file directly from terminal

$ nano filename.py Directly edit the Python file from the command line

$ clear Clears the entire terminal/command prompt

$ "press the up arrow key to find the last command you ran" Note: you have to actually press enter to run the command

$ exit Exits the terminal

Project: Make a game

In pairs, using Python, make the best game you can. For reference, Daisy's Tic Tac Toe game can be found here.