Module 3 · Put it together · Lesson 16 of 16

Your 40-command cheat sheet and final test

All 40 commands on one page, a mixed practice terminal, the final test, and how to practise on your own computer.

In this lesson · about 25 minutes

  • Pick the right command for a task from all 40
  • Know how to keep practising on a real machine

Linux: the 20 everyday commands

JobCommands
Where am I, what is here, go therepwd · ls -la · cd path, cd .., cd
Make, copy, move, deletemkdir -p · touch · cp -r · mv · rm -r
Read and searchcat · less · grep -in · find . -name "*.log"
Permissionschmod +x, chmod 644 · sudo chown user:group
Programsps aux · top · kill PID, kill -9 PID
Disks and the webdf -h · du -sh * · curl -o file URL

Git: the 20 everyday commands

JobCommands
Startgit init · git clone URL
Savegit status · git add · git commit -m · git diff · git log --oneline
Sharegit push · git pull · git fetch
Branchesgit branch · git switch -c · git checkout · git merge · git rebase
Rescue and undogit stash / pop · git reset · git revert · git cherry-pick · git tag

Flashcards

Mixed review: all 40

0 of 40 known

The cards are the job; you name the command.

40 left in the deck

Practice terminal · missions

Mixed practice: Linux and Git together

Real work mixes both. You are in Sam's website repository.

Missions 0 of 5

  1. 1Show where you are and what is here, including hidden files.
  2. 2Make a folder called images and an empty file images/logo.svg inside it.
  3. 3Find which file mentions 555-0100 (the phone number).
  4. 4Stage and commit the new folder.
  5. 5Push it.
sam@practice-box:~/website

Type a command and press Enter. Try help to list commands. Tab finishes names, ↑ repeats.

Repository ~/website · on main

1 · Working folder

The files you edit

  • README.mdsaved
  • index.htmlsaved
  • style.csssaved

2 · Staging area

Packed for the next commit

  • (nothing staged: use git add)

3 · Commit history (this computer)

Each dot is a saved snapshot. Labels are branches, tags and what you last heard from origin.

b644ba3HEAD → mainorigin/mainAdd phone number to footer
534d516Add styles
dd28f37Add home page

☁ Remote: origin

https://github.example/sam/website.git

  • mainb644ba3Add phone number to footersame as yours

Practice exam

Final test: 40 commands

20 questions, 25 minutes, mixed Linux and Git. 16 or more is a pass.

  • 20 questions · 25 minutes
  • No feedback until you submit. Flag questions to come back to them.
  • Aim for 85% or better before you move on. The real exam's 750 out of 900 is roughly 80–83%.

Written by Noviq Academy in its own words. The practice terminal is a simulation that runs in your browser: it imitates Linux (Ubuntu-style output) and Git closely, but it is not a real computer, and real output can differ slightly. The servers, people, web addresses and GitHub addresses in the labs are made up. Linux is a trademark of Linus Torvalds; Git and GitHub belong to their owners. Read-aloud uses your device's built-in voices.