|
67.
|
|
|
Options
|
|
|
|
אפשרויות
|
|
Translated and reviewed by
Eli Daian
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:335(title)
|
|
68.
|
|
|
The default behavior for a command may usually be modified by adding a <emphasis role="strong">-- <emphasis>option</emphasis></emphasis> to the command. The <link linkend="ls"><command>ls</command></link> command, for example, has a <emphasis role="strong">-s</emphasis> option so that <command>ls -s</command> will include file sizes in the listing. There is also a <emphasis role="strong">-h</emphasis> option to get those sizes in a "human readable" format.
|
|
|
|
התנהגות רגילה של פקודה ניתן בדרך כלל לשנות ע"י הוספת <emphasis role="strong">-- <emphasis>option</emphasis></emphasis> לפקודה. לדוגמה, לפקודת ה- <link linkend="ls"><command>ls</command></link> ישנה אפשרות <emphasis role="strong">-s</emphasis> כך ש <command>ls -s</command> יכלול גודל קבצים ברשימה. ישנה גם אפשרות <emphasis role="strong">-h</emphasis> לקבל גדלים אלו בפורמט קריא יותר.
|
|
Translated and reviewed by
Eyal Levin
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:336(para)
|
|
69.
|
|
|
Options can be grouped in clusters so <screen>ls -sh</screen> is exactly the same command as <screen>ls -s -h</screen> Most options have a long version, prefixed with two dashes instead of one, so even <screen>ls --size --human-readable</screen> is the same command.
|
|
|
|
ניתן לקבץ אפשרויות פקודה לאשכול כך ש <screen>ls -sh</screen> ניתן לרשום גם כפקודה <screen>ls -s -h</screen>. לרוב האפשרויות ישנה גירסה המתחילה בשני מקפים, כך שגם <screen>ls --size --human-readable</screen> היא אותה פקודה.
|
|
Translated and reviewed by
Eyal Levin
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:347(para)
|
|
70.
|
|
|
"Man" and getting help
|
|
|
|
"Man" וקבלת עזרה
|
|
Translated and reviewed by
Eli Daian
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:358(title)
|
|
71.
|
|
|
<emphasis role="strong"><emphasis>command</emphasis> --help</emphasis> and <emphasis role="strong">man <emphasis>command</emphasis></emphasis> are the two most important tools at the command line.
|
|
|
|
<emphasis role="strong"><emphasis>command</emphasis> --help</emphasis> ו <emphasis role="strong">man <emphasis>command</emphasis></emphasis> הם שני הכלים החשובים ביותר בשורת הפקודה.
|
|
Translated and reviewed by
Eli Daian
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:359(para)
|
|
72.
|
|
|
Virtually all commands understand the <emphasis role="strong">-h</emphasis> (or <emphasis role="strong">--help</emphasis>) option which will produce a short usage description of the command and it's options, then exit back to the command prompt. Type <screen>man -h</screen> or <screen>man --help</screen> to see this in action.
|
|
|
|
למעשה כל הפקודות מבינות את האפשרות <emphasis role="strong">-h</emphasis> (או <emphasis role="strong">--help</emphasis>) אשר תציג תיאור קצר של הפקודה ואפשרויותיה, ותצא חזרה לשורת הפקודה. הקלד <screen>man -h</screen> או <screen>man --help</screen> כדי לראות זאת בפעולה.
|
|
Translated and reviewed by
Eyal Levin
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:366(para)
|
|
73.
|
|
|
Every command and nearly every application in Linux will have a man (manual) file, so finding them is as simple as typing <command>man command</command> to bring up a longer manual entry for the specified command. For example, <screen>man mv</screen> will bring up the <command>mv</command> (move) manual.
|
|
|
|
לכל פקודה וכמעט לכל יישום בלינוקס יהיה קובץ man (מדריך- manual), למציאתם פשוט הדפס <command>man command</command> בכדי להביא מדריך ארוך יותר לפקודה הנתונה. לדוגמה: <screen>man mv</screen> יביא את מדריך הפקודה <command>mv</command> - move.
|
|
Translated and reviewed by
Eyal Levin
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:376(para)
|
|
74.
|
|
|
Move up and down the man file with the arrow keys, and quit back to the command prompt with <keycap>q</keycap>.
|
|
|
|
הזז את קובץ ה man למעלה ולמטה עם מקשי החצים, וצא חזרה אל שורת הפקודה עם <keycap>q</keycap>.
|
|
Translated and reviewed by
Eli Daian
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:385(para)
|
|
75.
|
|
|
<screen>man man</screen> will bring up the manual entry for the <command>man</command> command, which is a good place to start.
|
|
|
|
<screen>man man</screen> יביא את המדריך לפקודת <command>man</command>, מקום טוב להתחיל.
|
|
Translated and reviewed by
Eyal Levin
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:390(para)
|
|
76.
|
|
|
<screen>man intro</screen> is especially useful - it displays the "Introduction to user commands" which is a well-written, fairly brief introduction to the Linux command line.
|
|
|
|
<screen>man intro</screen> שימושי במיוחד - הוא מציג "מבוא לפקודות משתמש", מבוא כתוב היטב ומקוצר לשורת הפקודה בלינוקס.
|
|
Translated and reviewed by
Eyal Levin
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:396(para)
|