The shell and the prompt · La terminal y el indicador de comando
This page needs a recent browser (with SharedArrayBuffer support). Please update Chrome, Edge, Firefox or Safari to the latest version. · Esta página necesita un navegador reciente (con soporte para SharedArrayBuffer). Por favor, actualiza Chrome, Edge, Firefox o Safari a la última versión.
English
The prompt
- When the terminal is ready, it shows a prompt and waits:
- That tells you who you are (
student), the computer (linux), and the folder you are in (~, your home). - You type a command after the
$, press Enter, and the computer runs it.
Español
La indicación
- Cuando la terminal está lista, muestra una indicación y espera:
student@linux:~$
- Eso te indica quién eres (
student), el equipo (linux) y la carpeta en la que estás (~, tu directorio personal). - Escribe un comando después del
$, presiona Enter y el equipo lo ejecuta.
English
Where am I?
- The command
pwdprints your current folder — your "you are here" on the map:
- Press the ▶ on that example to try it. (
~is short for your home folder,/home/student.)
Español
¿Dónde estoy?
- El comando
pwdimprime tu carpeta actual — tu "estás aquí" en el mapa:
pwd
- Presiona ▶ en ese ejemplo para probarlo. (
~es abreviatura de tu directorio personal,/home/student.)
English
Make the computer talk
echosimply prints back what you type. It is the classic first command:
- Run it, then try the two tasks below.
Español
Hacer hablar al equipo
echosimplemente imprime de vuelta lo que escribes. Es el clásico primer comando:
echo Hello from the shell
- Ejecútalo, luego intenta las dos tareas siguientes.
English
Common mistakes
- Commands are case-sensitive:
LSis notls. - The shell runs one command per line when you press Enter.
Español
Errores comunes
- Los comandos distinguen entre mayúsculas y minúsculas:
LSno es lo mismo quels. - El shell ejecuta un comando por línea cuando presionas Enter.
The prompt is waiting for a command. Type pwd (print working directory) to see which folder you are in, then click Run. · El indicador de comando está esperando una orden. Escribe pwd (print working directory) para ver en qué carpeta te encuentras, luego haz clic en Run.
echo prints back whatever you give it. Use it to print the word hello. · echo muestra de vuelta lo que le proporciones. Úsalo para imprimir la palabra hello.