The shell and the prompt · シェルとプロンプト
This page needs a recent browser (with SharedArrayBuffer support). Please update Chrome, Edge, Firefox or Safari to the latest version. · このページには最新のブラウザ(SharedArrayBuffer対応)が必要です。Chrome、Edge、Firefox、Safariを最新バージョンに更新してください。
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.
日本語
プロンプト
- ターミナルが準備できると、プロンプトを表示して待機します:
student@linux:~$
- これはあなたが 誰か(
student)、コンピュータ(linux)、そして現在いるフォルダ(~、ご自宅ディレクトリ)を示しています。 $の後にコマンドを入力して Enter を押すと、コンピュータが実行します。
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.)
日本語
現在どこにいる?
- コマンド
pwdはあなたの現在のフォルダを出力します — 「你现在在这里」のようなものです:
pwd
- その例の ▶ を押して試してください。(
~はご自宅ディレクトリの略語であり、/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.
日本語
コンピュータに話しかける
echoは入力した内容をそのまま表示するだけですが、これは古典的な最初のコマンドです:
echo Hello from the shell
- これを実行した後、以下の2つのタスクを試してください。
English
Common mistakes
- Commands are case-sensitive:
LSis notls. - The shell runs one command per line when you press Enter.
日本語
よくあるミス
- コマンドは大文字小文字を区別します:
LSとlsは異なります。 - Enter キーを押すと、シェルは各行ごとに1つのコマンドを実行します。
The prompt is waiting for a command. Type pwd (print working directory) to see which folder you are in, then click Run. · プロンプトがコマンドを待っています。pwd (print working directory) を入力して現在いるフォルダを確認し、Run をクリックしてください。
echo prints back whatever you give it. Use it to print the word hello. · echo は与えたものをそのまま出力します。hello という単語を出力するために使它。