NavigationCLI Manual
$cd
Wechseln Sie das aktuelle Arbeitsverzeichnis im Dateisystem.
BefehlssyntaxPOSIX Standard
cd [DIRECTORY]Live im interaktiven Terminal ausprobieren
Client-seitige Simulation ohne Installation mit sofortigem Feedback.
bash — terminal
AST Sandbox (Free)
Überblick & Funktionsweise
cd ist der zentrale Navigationsbefehl zum Wechseln zwischen Verzeichnissen unter Linux.
Wichtige Optionen und Flags
| Flag / Option | Description |
|---|---|
| ~ | Navigate directly to the current user home directory (/home/user). |
| .. | Move up one level to the parent directory. |
| - | Switch back to the previous working directory. |
| / | Navigate to the root directory of the entire filesystem. |
Praktische Anwendungsbeispiele
#1Navigate to the /etc configuration folder
cd /etc && pwdChanges the active directory to /etc and prints the updated path.
#2Return to user home directory
Quickly returns to /home/user from any location.
Verwandte Linux-Befehle
$lsNavigation
Verzeichnisinhalte auflisten mit Dateigrößen, Berechtigungen und Zeitstempeln.
$pwdNavigation
Druckt den absoluten Pfad des aktuellen Arbeitsverzeichnisses.
$mkdirDateioperationen
Create new directories and folder hierarchies.
$whichNavigation
Locate the executable binary path of a command in system PATH.
$treeNavigation
Display directory structure in a recursive visual tree diagram.