Online Linux Terminal Logo
OnlineLinuxTerminal
NavigationCLI Manual

$pwd

Afficher le chemin absolu du répertoire de travail actuel.

Syntaxe de la commandePOSIX Standard
pwd [OPTIONS]
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

pwd renvoie le chemin complet depuis la racine / jusqu'au dossier actif.

Options et drapeaux courants

Flag / OptionDescription
-LPrint logical working directory (resolving symbolic links according to shell).
-PPrint physical working directory with all symbolic links completely resolved.

Exemples pratiques du monde réel

#1Print current directory path

Outputs the absolute filesystem path.