Knowledge Checks
This page is a continuous work in progress. Check back regularly for updates.
The intent of this page is to give you progressively more difficult challenges that you should master as the course progresses. You should attempt these with no notes, references or AI assistance, as you won't have those on the quizzes.
Don't move to the next challenge in each section until you have mastered the previous one.
If a section is marked with a prerequisite section, completed that first!
Knowledge checks up to ~ Jan. 29 lecture
Shell Commands
Prerequisite: None
In zsh or bash shell...
How do check what directory you are in?
How do you switch into a different directory?
How do you list contents of a directory?
How do you list detailed contents of a directory, including file permissions?
What do the first 10 letters represent in the detailed file listings?
What does tgardos and staff represent in the detailed file listings?
drwxr-xr-x@ 33 tgardos staff 1056 Feb 3 09:49 book
-rw-r--r--@ 1 tgardos staff 1438 Jan 21 14:59 book.toml
How do you list hidden files and directories in a directory?
What naming convention renders a file hidden?
What do the special characters . and .. represent in file paths?
How do you recall previous commands at the command line?
Hint: You can see previous commands with one keypress.
How do you list the most recently used commands?
Hint: This will print out a list of the most recent commands you issued.
Git Commands
Prerequisite: Shell Commands
How do you clone a repository?
After you clone a repo, are you in the local repo or do you have to switch to it?
How do you list the branches in a repository?
How do you switch to a different branch?
How do you create a new branch?
How do you check if you have changes or new files in your repository?
How do you stage changes in your repository?
Hint: You are adding them to the staging area.
How do you commit changes to your repository along with a commit message in one step?
How do you merge a branch into the main branch?
How do you push changes to a remote repository?
How do you pull changes from a remote repository?
Rust Command Line Tools
Prerequisite: Shell Commands
How do you create a new Rust project?
How do you build a Rust project?
How do you run a Rust program?
Basic Rust Syntax
From memory, write a main function in Rust that prints "Hey world! I got this!".
// Your code here
Ownership in Rust
Prerequisite: Complete Basic Rust Syntax