|
72.
|
|
|
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>опцију</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
Мирослав Николић
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:336(para)
|
|
73.
|
|
|
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
Мирослав Николић
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:347(para)
|
|
74.
|
|
|
"Man" and getting help
|
|
|
|
"Man" и добијање помоћи
|
|
Translated and reviewed by
Мирослав Николић
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:358(title)
|
|
75.
|
|
|
<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>Команда</emphasis> --help</emphasis> и <emphasis role="strong">man <emphasis>команда</emphasis></emphasis> јесу две најважније алатке у командној линији.
|
|
Translated and reviewed by
Мирослав Николић
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:359(para)
|
|
76.
|
|
|
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
Мирослав Николић
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:366(para)
|
|
77.
|
|
|
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 (упутство) датотеку, тако да је њихово проналажење једноставно и своди се на уписивање <command>man команде</command> за добијање дужег описа задате команде. На пример, <screen>man mv</screen> ће исписати <command>mv</command> (move/премести) приручник.
|
|
Translated and reviewed by
Мирослав Николић
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:376(para)
|
|
78.
|
|
|
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
Мирослав Николић
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:385(para)
|
|
79.
|
|
|
<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
Мирослав Николић
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:390(para)
|
|
80.
|
|
|
<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
Мирослав Николић
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:396(para)
|
|
81.
|
|
|
There are also <command>info</command> pages, which are generally more in-depth than <command>man</command> pages. Try <screen>info info</screen> for the introduction to info pages.
|
|
|
|
Ту су и <command>info</command> странице, које су углавном више у дубину него <command>man</command> странице. Пробајте <screen>info info</screen> за увод у инфо странице.
|
|
Translated and reviewed by
Мирослав Николић
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:401(para)
|