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.
עברית
הפידבק (Prompt)
- כאשר הטורמינל מוכן, הוא מציג פידבק וממתין:
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
- הרץ אותה, ואז נסה את השתי משימות הבאות.
English
Common mistakes
- Commands are case-sensitive:
LSis notls. - The shell runs one command per line when you press Enter.
עברית
טעויות נפוצות
- הפקודות רגישות לגודל אותיות:
LSאינו זהה לls. - השרל (shell) מרץ פקודה אחת בכל שורה כאשר לוחצים על Enter.
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.