Skip to content

🖥️ Chapter 1 — Your First Terminal Commands

Welcome to your first real step into development! 🎉
In this chapter, you’ll learn how to use the terminal — a powerful tool that every developer uses daily.


🤔 What is "the terminal"?

The terminal (or "console", or "command line") is a tool where you type commands instead of clicking with your mouse.

You’ll use it to:

  • navigate through folders and files,
  • launch programs (like TypeScript),
  • install tools and libraries,
  • and run your apps.

You don't need to memorize everything. The goal is to get comfortable using it.

📘 Learn more:


🧑‍💻 Setup

You can use:

  • Mac / Linux → Terminal is already available.
  • Windows → Use either:

We'll stick to basic, cross-platform commands that work everywhere.

📘 Official docs:


📁 Basic navigation

🔹 See where you are

bash
pwd

“pwd” = Print Working Directory


🔹 List the contents of the current folder

bash
ls

On Windows you can also use dir, but ls is preferred (and used everywhere).


🔹 Move to another folder

bash
cd foldername

To go up one level:

bash
cd ..

To go to your home folder:

bash
cd ~

🔹 Create a new folder

bash
mkdir my-first-project

🔹 Go into that folder

bash
cd my-first-project

🔹 Create a file

bash
touch hello.txt

On Windows: echo > hello.txt


🔹 Open the folder in VS Code (if installed)

bash
code .

You may need to install the code command in your terminal: Open VS Code → Cmd+Shift+P → Search: Install 'code' command in PATH

📘 VS Code docs:


💪 Challenge

Try this mini-mission:

  1. Open your terminal
  2. Go to your home folder: cd ~
  3. Create a folder named starter-dev
  4. Inside that folder, create another folder called chapter-1
  5. Enter that folder and create a file named readme.md
  6. Open it in VS Code using code .

If you did it, congrats! You’ve just recreated a mini project structure using only your keyboard 🎉


🧼 Bonus: Clean up

To delete a file:

bash
rm readme.md

To delete a folder and all its content:

bash
rm -rf chapter-1

⚠️ Be careful with rm -rf — it deletes without asking!

📘 Optional: Learn more bash commands


🧠 Summary

CommandWhat it does
pwdShow current directory
lsList files in a directory
cdChange directory
mkdirCreate a folder
touchCreate a file
rmDelete a file
rm -rfDelete a folder (recursive!)
code .Open folder in VS Code (if setup)

✅ You’re ready for the next step

You now know how to move around, create, and organize files using the terminal.

👉 Go to Chapter 2: Installing Node.js, Deno and TypeScript

Publié sous licence MIT