Оболочка и приглашение командной строки
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
;.
Сложность 1/5 · 100 монет + небольшой бонус за первое завершение сегодня
Приглашение ожидает команду. Введите pwd (print working directory), чтобы узнать, в какой папке вы находитесь, затем нажмите Run.
Сложность 1/5 · 100 монет + небольшой бонус за первое завершение сегодня
echo выводит то, что вы ему передадите. Используйте его, чтобы вывести слово hello.
Сложность 1/5 · 100 монет + небольшой бонус за первое завершение сегодня
Оболочка разбивает неэкранированную строку на слова, поэтому echo получает my и gap и объединяет их одним пробелом. Поместите текст в двойные кавычки, чтобы сохранить его как одно слово: print my gap с тремя пробелами, используя echo "my gap".