The shell and the prompt · O shell e o prompt
This page needs a recent browser (with SharedArrayBuffer support). Please update Chrome, Edge, Firefox or Safari to the latest version. · Esta página precisa de um navegador recente (com suporte a SharedArrayBuffer). Por favor, atualize Chrome, Edge, Firefox ou Safari para a versão mais recente.
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.
Português
O prompt
- Quando o terminal estiver pronto, ele mostrará um prompt e aguardará:
student@linux:~$
- Isso informa quem você é (
student), o computador (linux) e a pasta em que você está (~, sua pasta home). - Você digita um comando após o
$, pressiona Enter e o computador o executa.
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.)
Português
Onde estou?
- O comando
pwdimprime sua pasta atual — seu "você está aqui" no mapa:
pwd
- Pressione o ▶ naquele exemplo para testar. (
~é curto para sua pasta home,/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.
Português
Fazendo o computador falar
echosimplesmente imprime de volta o que você digita. É o clássico primeiro comando:
echo Hello from the shell
- Execute-o, depois tente as duas tarefas abaixo.
English
Common mistakes
- Commands are case-sensitive:
LSis notls. - The shell runs one command per line when you press Enter.
Português
Erros comuns
- Comandos diferenciam maiúsculas de minúsculas:
LSnão éls. - O shell executa um comando por linha quando você pressiona Enter.
The prompt is waiting for a command. Type pwd (print working directory) to see which folder you are in, then click Run. · O prompt está esperando um comando. Digite pwd (print working directory) para ver qual pasta você está, depois clique em Executar.
echo prints back whatever you give it. Use it to print the word hello. · echo imprime de volta tudo o que você lhe dá. Use-o para imprimir a palavra hello.