NavegaciónCLI Manual
$cd
Cambie el directorio de trabajo actual para navegar por el sistema de archivos.
Sintaxis del comandoPOSIX Standard
cd [DIRECTORY]Prueba en vivo en la terminal interactiva
Simulación del lado del cliente sin instalación y con respuesta inmediata.
bash — terminal
AST Sandbox (Free)
Descripción general y funcionamiento
cd es el comando de navegación principal para moverse entre carpetas en Linux.
Opciones y banderas comunes
| 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. |
Ejemplos prácticos del mundo real
#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.
Comandos de Linux relacionados
$lsNavegación
Liste el contenido del directorio, incluidos permisos, tamaños y fechas.
$pwdNavegación
Muestra la ruta absoluta del directorio de trabajo actual.
$mkdirOperaciones de archivos
Create new directories and folder hierarchies.
$whichNavegación
Locate the executable binary path of a command in system PATH.
$treeNavegación
Display directory structure in a recursive visual tree diagram.