Creating and removing · יצירה והסרה
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
Making things
mkdirmakes a directory;touchmakes an empty file:
- After these, you have a
notesfolder with an emptytodo.txtinside it.
עברית
יצירת דברים
mkdirיוצר תיקיה;touchיוצר קובץ ריק:
mkdir notes
touch notes/todo.txt
- לאחר מכן יש לכם תיקיית
notesעם קובץ ריקtodo.txtבתוכה.
English
Copying and moving
cpcopies a file;mvmoves (or renames) it:
mv old newis also how you rename something — moving it to a new name.
עברית
העתקה והזזה
cpמערך קובץ;mvמזז (או משנה שם):
cp hello.txt backup.txt
mv backup.txt notes/backup.txt
mv old newהוא גם הדרך שבה משנים שם למו thing — הזזתו לשם חדש.
English
Removing — carefully
rmremoves a file. To remove a folder and everything in it, add-r(recursive):
- ⚠️ There is no recycle bin on the command line.
rmis permanent — always check before you delete.
עברית
הסרה — בזהירות
rmמסיר קובץ. כדי לספק תיקיה והכל בתוכה, הוסיפו-r(רקורסיבי):
rm backup.txt
rm -r notes
- ⚠️ אין מיכל מחיקה בשורת הפקודה.
rmהוא קבוע — תמיד בדקו לפני שמחקתם.
English
Common mistakes
rmdeletes for good — there is no recycle bin.mkdirmakes a folder;rmdironly removes an empty one.
עברית
טעויות נפוצות
rmנמחק לצמיתות — אין מיכל מחיקה.mkdirיוצר תיקיה;rmdirמסיר רק ריקה.
Explore · חקור
Folders and files · תיקיות וקבצים
mkdir / touch add to the tree; cd moves where you are. · mkdir / touch מוסיפים לעץ; cd מזיז את המקום הנוכחי שלך.
Make a new folder called notes with mkdir notes. The check then lists the folder to confirm it appeared. · צור תיקיה חדשה בשם notes עם mkdir notes. הבדיקה תרשים אחר כך את התיקיה כדי לאמת שהופיעה.
Make a copy of hello.txt named backup.txt using cp. · צור העתק של hello.txt בשם backup.txt באמצעות cp.