|
69.
|
|
|
To assign a password for the new user use the <command>passwd</command> command: <screen>passwd newuser</screen>
|
|
|
|
Lai jaunajam lietotājam piešķirtu paroli, lietojiet <command>passwd</command> komandu: <screen>passwd jaunslietotajs</screen>
|
|
Translated and reviewed by
Pēteris Krišjānis
|
|
|
|
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>
|
|
|
|
Beigās pievienojiet jaunizveidoto lietotāju jaunajai grupai, rakstot: <screen>adduser jaunslietotajs jaunagrupa</screen>
|
|
Translated and reviewed by
Pēteris Krišjānis
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:327(para)
|
|
71.
|
|
|
Options
|
|
|
|
Opcijas
|
|
Translated and reviewed by
Pēteris Krišjānis
|
|
|
|
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.
|
|
|
|
Noklusētā komandas uzvedība var tikt mainīta, pievienojot <emphasis role="strong">-- <emphasis>opcija</emphasis></emphasis> komandai. Piemēram, <command>ls</command> komandai ir <emphasis role="strong">-s</emphasis> opcija, kuru norādot <command>ls -s</command>, failu sarakstā tiks iekļauti arī to izmēri. Ir pieejama arī <emphasis role="strong">-h</emphasis> opcija, lai iegūtu dotos failu izmērus cilvēkam saprotamā ("human readable") formātā.
|
|
Translated and reviewed by
Pēteris Krišjānis
|
|
|
|
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.
|
|
|
|
Opcijas var tikt grupētas, tādējādi <screen>ls -sh</screen> ir tieši tāda pati komanda kā <screen>ls -s -h</screen>. Parasti opcijām ir garā versija, kurai priekšā ir divas svītras vienas vietā, tādējādi <screen>ls --size --human-readable</screen> ir tāda pati komanda kā iepriekšējās.
|
|
Translated and reviewed by
Pēteris Krišjānis
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:347(para)
|
|
74.
|
|
|
"Man" and getting help
|
|
|
|
"Man" un palīdzības iegūšana
|
|
Translated and reviewed by
Pēteris Krišjānis
|
|
|
|
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>komanda</emphasis> --help</emphasis> un <emphasis role="strong">man <emphasis>komanda</emphasis></emphasis> ir divi svarīgākie rīki komandrindā.
|
|
Translated and reviewed by
Pēteris Krišjānis
|
|
|
|
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.
|
|
|
|
Praktiski visas komandas saprot <emphasis role="strong">-h</emphasis> (vai <emphasis role="strong">--help</emphasis>) opciju, kas izvadīs īsu komandas lietošanas aprakstu un tās opcijas, un tad atgriezīsies komandrindā. Rakstiet <screen>man -h</screen> vai <screen>man --help</screen>, lai redzētu to darbibā.
|
|
Translated and reviewed by
Pēteris Krišjānis
|
|
|
|
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.
|
|
|
|
Katrai komandai un gandrīz ikvienai lietotnei Linux vidē ir savs man (manual jeb rokasgrāmatas) fails, un tos atrast ir tik vienkārši kā ierakstīt <command>man command</command>. Piemēram, <screen>man mv</screen> dos jums aplūkot pārvietošanas/pārsaukšanas komandas <command>mv</command> rokasgrāmatu.
|
|
Translated and reviewed by
Pēteris Krišjānis
|
|
|
|
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>.
|
|
|
|
Pārvietojieties pa rokasgrāmatas failu izmantojot bultiņu taustiņus uz augšu un leju, un izejiet atpakaļ uz komandrindu vienkārši nospiežot <keycap>q</keycap>.
|
|
Translated and reviewed by
Pēteris Krišjānis
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:385(para)
|