|
29.
|
|
|
To list one time per line, type: <screen>ls -1</screen>
|
|
|
|
להצגת שורה בודדת בכל פעם, הקלד: <screen>ls -1</screen>
|
|
Translated and reviewed by
Eyal Levin
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:205(para)
|
|
30.
|
|
|
cp
|
|
|
|
cp
|
|
Translated and reviewed by
Eyal Levin
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:191(title)
|
|
31.
|
|
|
The <command>cp</command> command will make a copy of a file for you (<acronym>cp</acronym> stands simply for "copy"). For example, type: <screen>cp file foo</screen> to make a exact copy of <filename>file</filename> and name it <filename>foo</filename>, but the file <filename>file</filename> will still be there.
|
|
|
|
הפקודה <command>cp</command> תיצור העתק של קובץ (<acronym>cp</acronym>קיצור ל- "copy"). לדוגמה, הקלד: <screen>cp file foo</screen> בכדי ליצור עותק מדוייק של <filename>file</filename> ולקרוא לו <filename>foo</filename>, הקובץ <filename>file</filename> יישאר.
|
|
Translated and reviewed by
Eyal Levin
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:214(para)
|
|
32.
|
|
|
mv
|
|
|
|
mv
|
|
Translated and reviewed by
Eli Daian
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:202(title)
|
|
33.
|
|
|
<command>mv</command>: The <command>mv</command> command will move a file to a different location or will rename a file (<acronym>mv</acronym> stands simply for "move"). Examples:
|
|
|
|
פקודת <command>mv</command> תעביר קובץ למיקום שונה או תשנה שם קובץ (<acronym>mv</acronym> קיצור ל- "move"). דוגמאות:
|
|
Translated and reviewed by
Eyal Levin
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:227(para)
|
|
34.
|
|
|
To rename a file named <filename>file</filename> to <filename>foo</filename>, type: <screen>mv file foo</screen>.
|
|
|
|
בכדי לשנות קובץ בשם <filename>file</filename> ל- <filename>foo</filename>, הקלד: <screen>mv file foo</screen>.
|
|
Translated and reviewed by
Eyal Levin
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:236(para)
|
|
35.
|
|
|
To move the file <filename>foo</filename> to your <filename class="directory">Desktop</filename>, type: <screen>mv foo ~/Desktop</screen>. This will move foo but will not rename it. You must specify a new file name to rename a file.
|
|
|
|
בכדי להעביר את הקובץ <filename>foo</filename> ל<filename class="directory">Desktop</filename>, הקלד: screen>mv foo ~/Desktop</screen>. פעולה זו תעביר את foo אך לא תשנה את שמו. עליך לציין שם קובץ חדש בכדי לשנות שם קובץ.
|
|
Translated and reviewed by
Eyal Levin
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:242(para)
|
|
36.
|
|
|
If you are using <command>mv</command> with <command>sudo</command> you will not be able to use the <emphasis role="strong">~</emphasis> shortcut, but will have to use the full pathnames to your files. This is because when you are working as root, <emphasis role="strong">~</emphasis> will refer to the root account's home directory, not your own.
|
|
|
|
בשימוש בפקודה <command>mv</command> עם <command>sudo</command> לא ניתן יהיה להשתמש בקיצור הדרך <emphasis role="strong">~</emphasis>, אלא יידרש השימוש בנתיב המלא לקבצים. זאת מכיוון שכאשר עובדים כ"מנהל" (root), <emphasis role="strong">~</emphasis> יתייחס לתיקיית הבית של המנהל, לא שלך.
|
|
Translated and reviewed by
Eyal Levin
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:250(para)
|
|
37.
|
|
|
rm
|
|
|
|
rm
|
|
Translated and reviewed by
Eli Daian
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:216(title)
|
|
38.
|
|
|
The <command>rm</command> will remove or delete a file in your directory (<acronym>rm</acronym> stands simply for "remove"). It will not work on directories which have files in them. To remove directories, you can use <command>rm -r</command>. The <emphasis>r</emphasis> stands for <emphasis>recursive</emphasis>. For example: <screen>rm -r foo</screen> will remove the directory named foo and all of its contents.
|
|
|
|
הפקודה <command>rm</command> תסיר או תמחוק קובץ בתיקייה הנוכחית. (<acronym>rm</acronym> הוא קיצור ל- "remove"). הפקודה לא תעבוד על תיקיות בהן ישנם קבצים. כדי להסיר תיקיות, ניתן להשתמש בפקודה <command>rm -r</command>. ה- <emphasis>r</emphasis> מסמלת <emphasis>recursive</emphasis> (רקורסיה). לדוגמה: <screen>rm -r foo</screen> יסיר את התיקייה foo וכל התוכן הנמצא בה.
|
|
Translated and reviewed by
Eyal Levin
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:263(para)
|