0Pricing
Linux Command Line Mastery · Lektion

Grundlegende Navigation: `cd`, `ls`, `pwd`

Lernen Sie, sich im Dateisystem zu bewegen, Verzeichnisinhalte aufzulisten und Ihren aktuellen Speicherort zu ermitteln.

Grundlegende Navigation: `cd`, `ls`, `pwd` ist eine kostenlose Linux Command Line Mastery-Lektion auf CoddyKit. Dies ist Lektion 2 von 4. Du kannst die komplette Lektion unten kostenlos lesen – dann übst du sie direkt im Browser mit einem integrierten Code-Editor und einem KI-Tutor rund um die Uhr. Sie ist Teil des Linux Command Line Mastery-Lernpfads, und dein Fortschritt wird über Web und CoddyKit-App synchronisiert. Der Linux Command Line Mastery-Kurs umfasst insgesamt 4 Lektionen.

Teile dieser Lektion wurden noch nicht übersetzt und werden auf Englisch angezeigt.

Navigating Your Linux System

The Linux file system is a tree rooted at /. This lesson covers the commands to move around it and see what’s inside each directory.

Where Am I? The `pwd` Command

Lost your place? pwd (print working directory) shows the full path of where you are right now — your “you are here” sign.

See Your Current Path with `pwd`

Run pwd to see your current directory — likely something like /home/user.

pwd

What's Here? The `ls` Command

ls (list) shows the files and folders in your current directory — or any directory you point it at.

Listing Directory Contents with `ls`

Let’s make a folder and a file, then run ls to watch them show up.

mkdir my_documents
touch notes.txt
ls

Moving Around: The `cd` Command

cd (change directory) moves you around the file system. Give it an absolute path (from /) or a relative one (from where you are).

Changing with Absolute Paths

An absolute path starts at the root /, so it always points to the same place no matter where you currently are.

mkdir -p /tmp/my_project/src
cd /tmp/my_project/src
pwd

Changing with Relative Paths

A relative path starts from your current spot — shorter and handy. Use . for here and .. for the parent directory.

mkdir -p project/images
cd project
pwd
cd images
pwd
cd ..
pwd

Useful `ls` Options: `-l` and `-a`

Two essential ls flags: -l for a long listing (permissions, size, date) and -a to reveal hidden dotfiles.

touch .config_file
touch public_file
ls -a
ls -l

Test Your Navigation Skills

Consider the following sequence of commands executed in a terminal:

mkdir my_app
cd my_app
mkdir assets
touch assets/image.png
cd ..
ls

Recap: Navigate Like a Pro!

Navigation locked in! pwd shows where you are, ls lists contents, and cd moves you around with absolute or relative paths.

Häufig gestellte Fragen

Ist die Lektion „Grundlegende Navigation: `cd`, `ls`, `pwd`“ kostenlos?

Ja — der vollständige Text von „Grundlegende Navigation: `cd`, `ls`, `pwd`“ ist hier im Web kostenlos zu lesen. Um sie interaktiv zu üben (integrierter Code-Editor und 24/7 KI-Tutor) und den Rest des Linux Command Line Mastery-Kurses freizuschalten, upgrade auf CoddyKit PRO. Der Linux Command Line Mastery-Kurs umfasst insgesamt 4 Lektionen.

Was lerne ich in „Grundlegende Navigation: `cd`, `ls`, `pwd`“?

Lernen Sie, sich im Dateisystem zu bewegen, Verzeichnisinhalte aufzulisten und Ihren aktuellen Speicherort zu ermitteln. Du übst Linux Command Line Mastery mit praktischem Code, den du direkt im Browser ausführst, und ein 24/7 KI-Tutor beantwortet deine Fragen während du die Lektion bearbeitest.

Brauche ich Erfahrung, um Linux Command Line Mastery zu starten?

Keine Vorkenntnisse erforderlich. Linux Command Line Mastery auf CoddyKit ist für Anfänger bis fortgeschrittene Lernende strukturiert, sodass du hier starten oder von Anfang an beginnen und in deinem eigenen Tempo voranschreiten kannst. Dies ist Lektion 2 von 4.

Wie lange dauert die Lektion „Grundlegende Navigation: `cd`, `ls`, `pwd`“?

Die meisten CoddyKit-Lektionen dauern etwa 5–10 Minuten. Jede ist kompakt und interaktiv, sodass du stetig Fortschritte machst und genau dort weitermachst, wo du aufgehört hast – im Web und in der App.

Kann ich in dieser Linux Command Line Mastery-Lektion Code schreiben und ausführen?

Ja. Jede Linux Command Line Mastery-Lektion enthält einen integrierten Code-Editor, sodass du echten Code direkt in deinem Browser schreibst und ausführst und sofort KI-Feedback erhältst — ohne lokale Einrichtung erforderlich.

Alle Lektionen in diesem Kurs

  1. Einführung in die Linux-Shell
  2. Grundlegende Navigation: `cd`, `ls`, `pwd`
  3. Datei- und Verzeichnisverwaltung: `mkdir`, `rm`, `cp`, `mv`
  4. Hilfe finden: man, --help und tldr
← Zurück zu Linux Command Line Mastery