From d8423575de0e0bdac35f61faae493b412790afcc Mon Sep 17 00:00:00 2001 From: Thanassis Avgerinos Date: Fri, 16 Oct 2026 16:52:18 -0400 Subject: [PATCH] Chapter 1: the wsl --install fix for Windows 10 from the course FAQ The course FAQ (13/10) explains why `wsl --install` can print only its usage on Windows 10 and how to install Ubuntu explicitly. Chapter 1 asks students to install WSL, so its common mistakes now cover this and link the FAQ. Co-Authored-By: Claude Opus 5.5 (1M context) --- chapters/01-command-line/README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/chapters/01-command-line/README.md b/chapters/01-command-line/README.md index ffa0bd1..aade2d5 100644 --- a/chapters/01-command-line/README.md +++ b/chapters/01-command-line/README.md @@ -674,6 +674,11 @@ $ echo $? ## Συχνά λάθη +- **`wsl --install` τυπώνει μόνο `Usage: wsl.exe ...`.** Συνήθως το WSL είναι ήδη + ενεργοποιημένο και στα Windows 10 πρέπει να ζητήσετε ρητά διανομή: `wsl --update` και + μετά `wsl --install -d Ubuntu` (οι διαθέσιμες διανομές με `wsl --list --online`). Μετά + την εγκατάσταση, το `wsl` ανοίγει την κονσόλα του Linux. Περισσότερα στο + [FAQ](https://progintro.github.io/faq), «Στήνω WSL στα Windows και κάτι δεν δουλεύει». - **Τρέξιμο χωρίς `./`.** Το `a.out` σκέτο δίνει `a.out: command not found`, γιατί το shell δεν ψάχνει στον τρέχοντα κατάλογο. Διόρθωση: `./a.out`. - **Τρέξιμο χωρίς (ξανά)μεταγλώττιση.** Αλλάξατε το `hello.c` αλλά το `./hello` τυπώνει