|
67.
|
|
|
Adding A New User
|
|
|
|
Bæti við nýjum notanda
|
|
Translated and reviewed by
Gling Gling
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:313(title)
|
|
68.
|
|
|
The <command>adduser</command> is used to create new users on the system. To create a new user, type: <screen>adduser newuser</screen> The above command will create a new user called <emphasis role="strong">newuser</emphasis>.
|
|
|
|
Skipunina <command>adduser</command> notar maður til að bæta við notendum í kerfinu. Til að bæta við notanda, skrifaðu: <screen>adduser newuser</screen> Þetta bætir við notanda sem heitir <emphasis role="strong">newuser</emphasis>.
|
|
Translated and reviewed by
Gling Gling
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:314(para)
|
|
69.
|
|
|
To assign a password for the new user use the <command>passwd</command> command: <screen>passwd newuser</screen>
|
|
|
|
Til að gefa nýjum notanda lykilorð má nota <command>passwd</command> skipunina (<acronym>passwd</acronym> er stytting á enska orðinu „password“ sem þýðir „lykilorð“ eða „aðgangsorð“).: <screen>passwd nyr_notandi</screen>
|
|
Translated and reviewed by
Baldur
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:321(para)
|
|
70.
|
|
|
Finally, to assign the new user to the new group, type: <screen>adduser newuser newgroup</screen>
|
|
|
|
Að lokun má setja nýjan notanda í nýjan hóp með því að skrifa: <screen>adduser nyr_notandi nyr_hopur</screen>
|
|
Translated and reviewed by
Baldur
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:327(para)
|
|
71.
|
|
|
Options
|
|
|
|
Valkostir
|
|
Translated and reviewed by
Tómas A. Árnason
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:335(title)
|
|
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.
|
|
|
|
Hægt er að breyta venjulegri hegðun skipana með því að bæta við <emphasis role="strong">-- <emphasis>eiginleika</emphasis></emphasis> við skipunina. Hægt er að bæta <emphasis role="strong">-s</emphasis> við skipunina <link linkend="ls"><command>ls</command></link> þannig að <command>ls -s</command> birti stærð skránna líka. Valkosturinn <emphasis role="strong">-h</emphasis> lætur stærðirnar birtast þannig að þær séu auðlesnari („human readable“).
|
|
Translated and reviewed by
Baldur
|
|
|
|
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.
|
|
|
|
Hægt er að setja valkosti saman þannig að skipunin <screen>ls -sh</screen> geirir það sama og skipunin <screen>ls -s -h</screen>. Hægt er að skrifa flestar skipanir á lengri máta, þar sem tvö bandstrik eru notuð í stað eins. þannig að skipunin <screen>ls --size --human-readable</screen> gerir líka það sama.
|
|
Translated and reviewed by
Baldur
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:347(para)
|
|
74.
|
|
|
"Man" and getting help
|
|
|
|
"Man" og að fá hjálp
|
|
Translated and reviewed by
Tómas A. Árnason
|
|
|
|
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>skipunin</emphasis> --help</emphasis> og <emphasis role="strong">man <emphasis>skipunin</emphasis></emphasis> eru meðal tveggja mikilvægustu tóla sem hægt er að nota í skipanalínunni.
|
|
Translated and reviewed by
Baldur
|
|
|
|
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.
|
|
|
|
Nær allar skipanir skilja <emphasis role="strong">-h</emphasis> (þ.e.a.s. <emphasis role="strong">--help</emphasis>) valmöguleikann sem sýnir hjálp fyrir skipunina og fer svo aftur í skipanalínuna. Prufaðu að skrifa <screen>man -h</screen> eða <screen>man --help</screen> til að sjá hvernig þetta virkar.
|
|
Translated and reviewed by
Baldur
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:366(para)
|