Online Linux Terminal Logo
OnlineLinuxTerminal
NavegaciónCLI Manual

$cd

Cambie el directorio de trabajo actual para navegar por el sistema de archivos.

Sintaxis del comandoPOSIX Standard
cd [DIRECTORY]
Comunidad Linux2.4k En línea

Chatea con usuarios de Linux, aprende comandos y descarga guías PDF.

Prueba en vivo en la terminal interactiva

Simulación del lado del cliente sin instalación y con respuesta inmediata.

Abrir en terminal de pantalla completa ↗
bash — terminal

Descripción general y funcionamiento

cd es el comando de navegación principal para moverse entre carpetas en Linux.

Opciones y banderas comunes

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.

Ejemplos prácticos del mundo real

#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.