TutorialesTutorials · PrincipianteBeginner
La terminal sin miedo: los comandos que de verdad vas a usarThe terminal without fear: the commands you'll actually use
La terminal no muerde. Aprende a abrirla en Windows y Mac y los pocos comandos que de verdad necesitas para moverte, ver archivos y no perderte.The terminal won't bite. Learn to open it on Windows and Mac and the few commands you actually need to move around, list files and not get lost.
- Terminal
- PowerShell
La terminal es solo una forma de escribirle órdenes a tu computadora en vez de hacer clic. Da miedo al principio, pero con 6 comandos te mueves de sobra. Elige tu sistema arriba y toca cada paso.
The terminal is just a way to type commands to your computer instead of clicking. It’s scary at first, but 6 commands are plenty to get around. Pick your system above and tap each step.
1 Abrir la terminalOpen the terminal
Aprieta la tecla Windows, escribe PowerShell y ábrela. (También sirve “Símbolo del sistema”.)
Aprieta Cmd + Espacio, escribe Terminal y ábrela.
Lo más fácil: ábrela dentro de VS Code con el menú Terminal → Nueva terminal. Así estás siempre en la carpeta de tu proyecto.
Press the Windows key, type PowerShell and open it. (“Command Prompt” also works.)
Press Cmd + Space, type Terminal and open it.
Easiest: open it inside VS Code with Terminal → New Terminal. That way you’re always in your project’s folder.
2 Ver dónde estás y qué haySee where you are and what's there
Escribe el comando, aprieta Enter.
- Ver la carpeta actual:
cdpwd - Ver los archivos de esa carpeta:
ls
Type the command, press Enter.
- See the current folder:
cdpwd - List the files in that folder:
ls
3 Moverte entre carpetasMove between folders
- Entrar a una carpeta:
cd nombre-de-la-carpeta - Subir un nivel (a la carpeta de arriba):
cd ..
Truco: escribe cd y arrastra una carpeta a la terminal, pega la ruta sola.
- Enter a folder:
cd folder-name - Go up one level (to the parent folder):
cd ..
Tip: type cd and drag a folder onto the terminal, it pastes the path for you.
4 Crear carpetas y archivosCreate folders and files
- Crear una carpeta:
mkdir mi-proyecto - Crear un archivo vacío:
ni archivo.txttouch archivo.txt
- Create a folder:
mkdir my-project - Create an empty file:
ni file.txttouch file.txt
Tus salvavidas (memoriza estos)Your lifesavers (memorize these)
| Atajo | Para qué |
|---|---|
| Flecha ↑ | Repite el último comando (no lo reescribas) |
| Tab | Autocompleta nombres de archivos/carpetas |
| Ctrl + C | Cancela lo que está corriendo |
clear | Limpia la pantalla |
| Shortcut | What it does |
|---|---|
| ↑ arrow | Repeat the last command (don’t retype it) |
| Tab | Auto-complete file/folder names |
| Ctrl + C | Cancel what’s running |
clear | Clear the screen |
Regla de oroGolden rule
No tienes que memorizar todo. Cuando un tutorial (o Claude) te diga “ejecuta esto”, copia y pega el comando y aprieta Enter. Con cd, ls y las flechas ya te defiendes.
You don’t have to memorize everything. When a tutorial (or Claude) says “run this”, copy and paste the command and press Enter. With cd, ls and the arrow keys you’re already good.