In the breakout rooms, each person should individually complete following tasks. The goal is procedural fluency - seeing a prompt and successfully typing in a solution. If you get stuck ask someone else in the breakout rooms to help you. Do all the following tasks locally in a terminal window.
The commands to do the following tasks should be memorized. If you have to look-up any of them up, you need to take the time to memorized them. Flashcards are a great tool for memorizing them.
(These might appear on a test as fill in the blank.)
- List the current directory path.
- Navigate to the desktop directory.
- List the files on your desktop.
- List all the files on your desktop, including hidden files.
- Clear the output from the screen.
- Go through history of command to list the files again.
- Look at the help documentation for the
cat
command. - From the desktop directory navigate to your GitHub folder for this class. Try to do in a single command. >
- Find the version of Python you are running.
- Install
GoogleNews
Python package. - Start a Jupyter Notebook or Jupyter Lab server.
- Stop the currently running Jupyter Notebook or Jupyter Lab server.
You should be very familiar with the following tasks and commands since they come up often. It strongly suggested you memorized them.
(These might appear on a test as multiple choice)
- Create a new directory called
temp
. - Navigate into that directory.
- Create a new file called
hello.txt
. - Open that file in nano, write
Hello, world!
, save, and exit. - Display the contents of
hello.txt
on the screen. - Make copy of
hello.txt
calledhello2.txt
. - Delete both the folder and all the files in a single command.
- Find the full path of the Python interpreter. This makes sure you are running the right copy of Python.
- Find all of the pip and conda packages installed.
- Install
ponysay
(Brian's favorite command line utility). - Then say get a pony to say "It needs to be about 20% cooler."