O shell e o prompt
The prompt
- When the terminal is ready, it shows a prompt and waits:
student@linux:~$
- 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.

Where am I?
- The command
pwdprints your current folder — your "you are here" on the map:
pwd
- Press the ▶ on that example to try it. (
~is short for your home folder,/home/student.)
Make the computer talk
echosimply prints back what you type. It is the classic first command:
echo Hello from the shell
- Run it, then try the two tasks below.
Common mistakes
- Commands are case-sensitive:
LSis notls. - Press Enter to submit a command; you can also put multiple commands on one line, separated by
;.
Dificuldade 1/5 · Moedas 100 + pequeno bônus na primeira conclusão hoje
O prompt está esperando um comando. Digite pwd (print working directory) para ver qual pasta você está, depois clique em Executar.
Dificuldade 1/5 · Moedas 100 + pequeno bônus na primeira conclusão hoje
echo imprime de volta tudo o que você lhe dá. Use-o para imprimir a palavra hello.
Dificuldade 1/5 · Moedas 100 + pequeno bônus na primeira conclusão hoje
O shell divide uma linha sem aspas em palavras, então echo recebe my e gap e os une com um espaço. Coloque o texto entre aspas duplas para mantê-lo como uma única palavra: imprima my gap com os três espaços, usando echo "my gap".