Online Linux Terminal Logo
OnlineLinuxTerminal
NavigationCLI Manual

$cd

Changer le répertoire de travail courant pour naviguer dans le système de fichiers.

Syntaxe de la commandePOSIX Standard
cd [DIRECTORY]
Communauté Linux2.4k En ligne

Échangez avec des utilisateurs Linux, apprenez des commandes et téléchargez des PDF.

Essayer en direct dans le bac à sable interactif

Simulation côté client sans installation avec retour instantané.

Ouvrir dans le terminal plein écran ↗
bash — terminal

Aperçu et fonctionnement

cd est la commande principale pour se déplacer entre les dossiers dans Linux.

Options et drapeaux courants

Flag / OptionDescription
~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.

Exemples pratiques du monde réel

#1Navigate to the /etc configuration folder
cd /etc && pwd

Changes the active directory to /etc and prints the updated path.

#2Return to user home directory

Quickly returns to /home/user from any location.