diff --git a/ru_RU.KOI8-R/articles/new-users/article.sgml b/ru_RU.KOI8-R/articles/new-users/article.sgml new file mode 100644 index 0000000000..6aba1d8877 --- /dev/null +++ b/ru_RU.KOI8-R/articles/new-users/article.sgml @@ -0,0 +1,1084 @@ +<!-- + The FreeBSD Russian Documentation Project + + $FreeBSD$ + $FreeBSDru: frdp/doc/ru_RU.KOI8-R/articles/new-users/article.sgml,v 1.1 2004/01/22 17:57:52 andy Exp $ + + Original revision: 1.38 +--> + +<!DOCTYPE ARTICLE PUBLIC "-//FreeBSD//DTD DocBook V4.1-Based Extension//EN" [ +<!ENTITY % man PUBLIC "-//FreeBSD//ENTITIES DocBook Manual Page Entities//EN"> +%man; +<!ENTITY % mailing-lists PUBLIC "-//FreeBSD//ENTITIES DocBook Mailing List Entities//RU"> +%mailing-lists; +<!ENTITY % freebsd PUBLIC "-//FreeBSD//ENTITIES DocBook Miscellaneous FreeBSD Entities//EN"> +%freebsd; +<!ENTITY % trademarks PUBLIC "-//FreeBSD//ENTITIES DocBook Trademark Entities//EN"> +%trademarks; +]> + +<article> + <articleinfo> + <title>������� ��� �������� �� FreeBSD � &unix;</title> + + <authorgroup> + <author> + <firstname>Annelise</firstname> + + <surname>Anderson</surname> + + <affiliation> + <address><email>andrsn@andrsn.stanford.edu</email></address> + </affiliation> + </author> + </authorgroup> + + <pubdate>15 ������� 1997</pubdate> + + <legalnotice id="trademarks" role="trademarks"> + &tm-attrib.freebsd; + &tm-attrib.ibm; + &tm-attrib.microsoft; + &tm-attrib.netscape; + &tm-attrib.opengroup; + &tm-attrib.general; + </legalnotice> + + <abstract> + <para>����������� ��� � ���������� FreeBSD! ��� ������� ������� + ������������� ��� ���, ��� �������� �������� � ���� FreeBSD + <emphasis>�</emphasis> &unix;—��� ��� ��� ���Σ��� � �����. + ��������������, ��� �� ����������� ����������� FreeBSD ������ 2.0.5 + ��� ����� �������, ���������������� ��������� BSDi ��� + FreeBSD.org, � � ����� ������� (�� ������ ������) ������� ���� + ������������ (��� ��)—� �� ������ �������������� � DOS/&windows; + ��� &os2;.</para> + </abstract> + </articleinfo> + + <sect1> + <title>����������� � ������� � ����� �� �ţ</title> + + <para>����������������� � ������� (����� ������� ����������� + <prompt >login:</prompt>) ��� ������������, �������� �� ������� �� ����� + ���������, ��� ������� � ������� ��� ������������ + <firstterm>root</firstterm>. (� ����� ������������� ������� ��� ������� + �ޣ���� ������ ��� ������������ root; root ����� ���������� ���� ���� + � ������ �ӣ, ��� ������, � ��� ����� �������� ����������� ��� ������ + ������, ��� ��� ������ �����������!) ����������� &prompt.user; � + &prompt.root; � ����������� ������ �������� ����������� ������� (���� + ����� ���������� �� ����), ���ޣ� &prompt.user; ���������� �������� + ������������, � &prompt.root; ������������ root.</para> + + <para>����� ����� �� ������� (� �������� ����� ����������� + <prompt >login:</prompt>) ��������</para> + + <informalexample> + <screen>&prompt.root; <userinput>exit</userinput></screen> + </informalexample> + + <para>������� ���, ������� �����. ��, ��������� <keysym>enter</keysym> + ����� ������ ������, � �������, ��� &unix; ������������ � �������� + ����—��������� <command>exit</command>, �� �� + <command>EXIT</command>.</para> + + <para>��� ���������� ������ ������ ��������</para> + + <informalexample> + <screen>&prompt.root; <userinput>/sbin/shutdown -h now</userinput></screen> + </informalexample> + + <para>���, ��� ������������ ����� �������</para> + + <informalexample> + <screen>&prompt.root; <userinput>/sbin/shutdown -r now</userinput></screen> + </informalexample> + + <para>���</para> + + <informalexample> + <screen>&prompt.root; <userinput>/sbin/reboot</userinput></screen> + </informalexample> + + <para>������������ ����� ����� ��������� �������� ������ + <keycombo><keycap>Ctrl</keycap><keycap>Alt</keycap> + <keycap>Delete</keycap></keycombo>. ��������� ��������� �����, ����� + ���� ���� ������� ����������. � ��������� ������� FreeBSD ��� + ����������� ������ ������� <command>/sbin/reboot</command> � �������, + ������� �����, ��� ������� ������ ������. �� ���� �� ������ �ӣ + ����������������� ������, �� ��� ��?</para> + </sect1> + + <sect1> + <title>���������� ������������ � ������������ root</title> + + <para>���� ��� ��������� ������� �� �� ������� �� ������ ������������, � + ������� ����� � ������� ��� root, �� ������ �� ������ ������� + ������������ �� �������</para> + + <informalexample> + <screen>&prompt.root; <userinput>adduser</userinput></screen> + </informalexample> + + <para>��� ������ ������������� ������� adduser ��� ����� ����������� + ���������� ��������� ���������� ��� ������������� �� �� ���������. + �� ������ ������� ���������, ������������ �� ���������, ��������� + ��������� &man.csh.1;, � �� &man.sh.1;, ���� �� ��������� ��� + ������������ <command>sh</command>. � ��������� ������ ������ ��������� + enter ��� �������� ���� ������������ �� ��������� ���������. ��� + �������� �� ��������� ����������� � ����� + <filename>/etc/adduser.conf</filename>, � �����, ��������� ��� + ��������������.</para> + + <para>�����������, ��� �� ������� ������������ <username>jack</username> � + ������ ������ <emphasis>Jack Benimble</emphasis>. ��������� ������������ + jack ������, ���� �������������� ����������� ����� �������� (���� ���� + ��� ����, ������� ����� ������� �� ����������). ����� ��� ����� ����� + ������ �� ��������� ������������ jack � ������ ������, �������� + <groupname>wheel</groupname></para> + + <informalexample> + <screen>Login group is ``jack''. Invite jack into other groups: <userinput>wheel</userinput></screen> + </informalexample> + + <para>��� �������� ������� � ������� ��� ������������ + <username>jack</username> � ������������ ������� &man.su.1; ��� ����, + ����� ����� ������������� root. ����� ��� �� ����� ������ �������� � + ���, ����� �� ������� � ������� ��� ������������ root.</para> + + <para>�� ������ ���������� ������ � <command>adduser</command> � ����� + ������, ����� <keycombo><keycap>Ctrl</keycap> + <keycap>C</keycap></keycombo>, � � ���������� ����� � ��� ����� ���� + ����������� ��������� ������ ������������ ��� ������� <keycap>n</keycap> + � �������� �������������� ������. ��� ����� ���������� ������� ������� + ������ ������������ (jill?), ��� ����, ����� ��� �������������� ������ + ��� ����� ������������ jack ������ ������� ������ �� ��� ������, + ���� ���-�� ���ģ� �� ���.</para> + + <para>����� ����, ��� �� ��� ��������, �������������� �������� + <command>exit</command> ��� �������� � ����������� �� ����� � ������� � + ����������������� � ��� ��� ������������ <username>jack</username>. + ������ ������, ����� ����� �������� ����� ������ ���������, ������� ��� + ������� ������������, ������� �� ����� ���� � ��������� ������������ + root.</para> + + <para>���� �� ��� ������� ������������ � ������, ����� �� ��� ��������� + ������� <command>su</command> ��� ��������� ���������� root, �� ������ + ����� � ������� ��� root � ��������������� ���� + <filename>/etc/group</filename>, ������� ������������ jack � ������ + ������� (� ������ <groupname>wheel</groupname>). ������ ������� ��� + ����� ������������� � ���������� &man.vi.1;, ��������� + ����������,—��� ������������ ����� ������� ��������, &man.ee.1;, + ��������������� � ��������� ������� FreeBSD.</para> + + <para>��� �������� ������������ �������������� �������� + <command>rmuser</command>.</para> + </sect1> + + <sect1> + <title>�������� ���������</title> + + <para>����� � ������� ��� ������� ������������, ���������� ������ � + ���������� ��������� ��������� �������, ������ ������ � ���������� + ���������� � ������ ������ FreeBSD.</para> + + <para>��� ��������� ������� � ��, ��� ��� ������:</para> + + <variablelist> + <varlistentry> + <term><command>id</command></term> + + <listitem> + <para>������� ���, ��� ��!</para> + </listitem> + </varlistentry> + + <varlistentry> + <term><command>pwd</command></term> + + <listitem> + <para>����������, ��� �� ����������—������� ������� + �������.</para> + </listitem> + </varlistentry> + + <varlistentry> + <term><command>ls</command></term> + + <listitem> + <para>������ ������ ������, ����������� � ������� ��������.</para> + </listitem> + </varlistentry> + + <varlistentry> + <term><command>ls <option>-F</option></command></term> + + <listitem> + <para>������ �������� ������, ����������� � ������� ��������, + �������� ������� <literal>*</literal> ����� ���������� ������, + <literal>/</literal> ����� ��������� � <literal>@</literal> ����� + ������������� ������.</para> + </listitem> + </varlistentry> + + <varlistentry> + <term><command>ls <option>-l</option></command></term> + + <listitem> + <para>������ �������� ������ � ����������� �������—������, ���� + � ����� �������.</para> + </listitem> + </varlistentry> + + <varlistentry> + <term><command>ls <option>-a</option></command></term> + + <listitem> + <para>������ �� ����� ������ � ������ ������� + <quote>dot</quote>-������ (������������ � �����). ���� �� + ��������� ������������� root, �� <quote>dot</quote>-����� �������� + � ��� �������� ����� <option>-a</option>.</para> + </listitem> + </varlistentry> + + <varlistentry> + <term><command>cd</command></term> + + <listitem> + <para>����� ���������. <command>cd + <parameter>..</parameter></command> ���������� �� ���� ������� + ����; �������� �������� �� ���������� ����� <command>cd</command>. + <command>cd <parameter>/usr/local</parameter></command> �����ģ� � + ��������� �����. <command>cd <parameter>~</parameter></command> + �����ģ� � �������� ������� ��������, ������� ��ۣ� � + �������—� �������, <filename>/usr/home/jack</filename>. + ���������� ��������� ������� <command>cd + <parameter>/cdrom</parameter></command>, � ����� + <command>ls</command> ��� �������� ����, ��� ��� CDROM ����������� + � ��������.</para> + </listitem> + </varlistentry> + + <varlistentry> + <term><command>view + <replaceable>filename</replaceable></command></term> + + <listitem> + <para>��������� ��� ����������� ���� (� ������ + <replaceable>filename</replaceable>) ��� �������� � ���� ���������. + ���������� ��������� ������� <command>view + <parameter>/etc/fstab</parameter></command>. ��� ������ ����� + ������� <command>:q</command>.</para> + </listitem> + </varlistentry> + + <varlistentry> + <term><command>cat + <replaceable>filename</replaceable></command></term> + + <listitem> + <para>������ ���������� <replaceable>filename</replaceable> �� �����. + ���� �� ������� ������� � �� ������ ������� ������ ��� �����, + ������� <keycap>ScrollLock</keycap> � ����������� ������� + <keycap>������� �����</keycap> ��� �������� �����; �� ������ + ����� ������������ <keycap>ScrollLock</keycap> � �� ���������� + �������. ������� <keycap>ScrollLock</keycap> ����� ��� ����������� + ���������. ��� ����� ���������� ����������� ������� + <command>cat</command> � ���������� �� dot-������ � ����� �������� + ��������—<command>cat + <parameter>.cshrc</parameter></command>, <command>cat + <parameter>.login</parameter></command>, <command>cat + <parameter>.profile</parameter></command>.</para> + </listitem> + </varlistentry> + </variablelist> + + <para>� ����� <filename>.cshrc</filename> �� �������� ������ ��� ��������� + �� ������ <command>ls</command> (��� ����� ������). �� ������ ������� + ������ ������, �������������� ���� <filename>.cshrc</filename>. �� + ������ ������� ��� ������ ���������� ���� ������������� �������, �������� + �� � ������������� ���������������� ���� ��� <command>csh</command>, + <filename>/etc/csh.cshrc</filename>.</para> + </sect1> + + <sect1> + <title>��������� ������ � ����������</title> + + <para>��� ��������� �������� ���������� ��������� ������. ����� + <replaceable>Text</replaceable> ���������� ���-�� �� ������ ������, ��� + �� �������—������ ������� ��� ��� �����.</para> + + <variablelist> + <varlistentry> + <term><command>apropos <replaceable>text</replaceable></command></term> + + <listitem> + <para>�ӣ, ��� �������� ������ <replaceable>text</replaceable> � + <database>���� whatis</database>.</para> + </listitem> + </varlistentry> + + <varlistentry> + <term><command>man <replaceable>text</replaceable></command></term> + + <listitem> + <para>�������� ������� �� <replaceable>text</replaceable>. ��� + ������� �������� ������������ � &unix;-��������. + <command>man <parameter>ls</parameter></command> ������� ��� ��� + ������� ������������� ������� <command>ls</command>. ��������� + <keycap>Enter</keycap> ��� ������������ �� ������, + <keycombo><keycap>Ctrl</keycap><keycap>B</keycap></keycombo> ��� + �������� �� �������� �����, + <keycombo><keycap>Ctrl</keycap><keycap>F</keycap></keycombo> ��� + ����������� ���ң�, <keycap>q</keycap> ��� + <keycombo><keycap>Ctrl</keycap><keycap>C</keycap></keycombo> ��� + ������.</para> + </listitem> + </varlistentry> + + <varlistentry> + <term><command>which <replaceable>text</replaceable></command></term> + + <listitem> + <para>�������, � ����� ����� �� �������� ������ ������������ + ��������� ������� <replaceable>text</replaceable>.</para> + </listitem> + </varlistentry> + + <varlistentry> + <term><command>locate <replaceable>text</replaceable></command></term> + + <listitem> + <para>��� ��������, ��� ��������� ������� + <replaceable>text</replaceable>.</para> + </listitem> + </varlistentry> + + <varlistentry> + <term><command>whatis <replaceable>text</replaceable></command></term> + + <listitem> + <para>���������, ��� ������ ������� <replaceable>text</replaceable> + � ţ ���������� ��������. ������� <command>whatis *</command> + ��������� ��� ��� ���� �������� ������ � ������� ��������.</para> + </listitem> + </varlistentry> + + <varlistentry> + <term><command>whereis <replaceable>text</replaceable></command></term> + + <listitem> + <para>���� ���� <replaceable>text</replaceable> � ������ ������ ���� + �� ����.</para> + </listitem> + </varlistentry> + </variablelist> + + <para>�� ������ �������� ����������� �������������� ������� + <command>whatis</command> � ���������� ��������� ��������� ���� + <command>cat</command>, <command>more</command>, <command>grep</command>, + <command>mv</command>, <command>find</command>, + <command>tar</command>, <command>chmod</command>, + <command>chown</command>, <command>date</command>, � + <command>script</command>. ������� <command>more</command> �������� + ��� ������ �����������, ��� � � DOS, ��������, <command>ls -l | + more</command> ��� <command>more + <replaceable>filename</replaceable></command>. ���� + <literal>*</literal> �������� ��� ����� ������—��������, + <command>ls w*</command> ������ �������� ������, ������������ � ����� + <literal>w</literal>.</para> + + <para>��������� �� ���� ������ �������� �� ����� ������? ��� ������� + &man.locate.1; � &man.whatis.1; ������� �� ���� ������, ������� + ��������������� �����������. ���� ���� ������ �� �������� ���������� + �� �������� (� �������� ��� FreeBSD), �� ��� ������������ ��� ����������� + ��������� ������̣���� ������� ��� � ����, ������, �����. ���������� �� + ��� root � ����� ������ ����������, ������ ��� ��������� + ���������.</para> + + <informalexample> + <screen>&prompt.root; <userinput>periodic daily</userinput> +<lineannotation>������ �������</lineannotation> +&prompt.root; <userinput>periodic weekly</userinput> +<lineannotation>������ �������</lineannotation> +&prompt.root; <userinput>periodic monthly</userinput> +<lineannotation>������ �������</lineannotation></screen> + </informalexample> + + <para>���� ��� ������� �����, ������� + <keycombo><keycap>Alt</keycap><keycap>F2</keycap></keycombo> ��� �������� + � ������ <firstterm>����������� �������</firstterm>, � ������� � ������� + �����. � ����� ������, ��� ��������������������� � ������������� + �������. ��� �� ����� ��� �������, ������ �����, � �������� ������ ����� + �������� ��������� ��� �� �����; �� ������ ������� + <command>clear</command> � ����������� ��� ������� ������. ���� ��� + ��������, �� ������ �������� � ���������� ������ + <filename>/var/mail/root</filename> � + <filename>/var/log/messages</filename>.</para> + + <para>���������� ����� ������ �������� ������ ���������� + �����������������—� ��� ������������ ������������ &unix;-������� �� + ��������� ����������� ��������� ���������������. ����������� �ӣ, ��� + ���� ��� ����� ���� ������������� root, ��� ��������� �����������������. + ��� ����������� �� ����������� ���������� ������ ���� � ��� ������� + ������� ������ �� &unix;, � ������� ������� ����� ����� �������� �������� + ������ � ���� � ������� ����������. ��� ����� ������������ ���� �� ���� + ������ ���� �� ���������� �����������������, ���� ������ ��� ����� + <citetitle>UNIX System Administration + Handbook</citetitle> (Prentice-Hall, 1995, ISBN + 0-13-15051-7)—������ ������� � ������� ��������; ��� + ������ Æleen Frisch <citetitle>Essential System + Administration</citetitle> (O'Reilly & Associates, 1993, + ISBN 0-937175-80-3). � ��������� ����� �����.</para> + </sect1> + + <sect1> + <title>�������������� ������</title> + + <para>��� ������������ ����� ������� ��� ����� ������������� ��������� + �����. ����������� �� ��� ����� ���������� � �������� + <filename>/etc</filename>; � ��� ���������� �������� + <command>su</command> �������� ���������� ������������ root, ����� �� + �������. �� ������ ������������ ������� �������� <command>ee</command>, + ������ � ������ ��������������� ���� ������� ��������� �������� + <command>vi</command>. � �������� + <filename>/usr/src/contrib/nvi/docs/tutorial</filename> ���� ���������� + ������� �� vi, ���� �� ��� � ��� ����; � ��������� ������ �� ������ + ��� �������� � ������� FTP <hostid>ftp.cdrom.com</hostid> � �������� + FreeBSD/FreeBSD-current/src/contrib/nvi/docs/tutorial.</para> + + <para>����� ���, ��� ������������� ����, ��������, �� ������ ��������� + ��������� �����. �����������, ��� �� ����������� ��������������� ���� + <filename>/etc/rc.conf</filename>. �� ������ ��������������� �������� + <command>cd /etc</command> ��� �������� � ������� + <filename>/etc</filename> � ��������� ���������:</para> + + <informalexample> + <screen>&prompt.root; <userinput>cp rc.conf rc.conf.orig</userinput></screen> + </informalexample> + + <para>��� ���� ���� <filename>rc.conf</filename> ����������� � + <filename>rc.conf.orig</filename>, � � ����������� �� ������� ����������� + <filename>rc.conf.orig</filename> � ���� + <filename>rc.conf</filename> ��� �������������� ���������. �� �ݣ ����� + ��� ����������� (������������), ����� ���� ����������� �������:</para> + + <informalexample> + <screen>&prompt.root; <userinput>mv rc.conf rc.conf.orig</userinput> +&prompt.root; <userinput>cp rc.conf.orig rc.conf</userinput></screen> + </informalexample> + + <para>������ ��� ������� <command>mv</command> ��������� �������� + ���������� � ���� � ��������� �����. ������ �� ������ ������������� + <filename>rc.conf</filename>. ���� �� �������� ������������ �������� + ���������, �� ��������� <userinput>mv rc.conf rc.conf.myedit</userinput> + (��������, ��� �� ������ ��������� ����������������� ������), � + �����</para> + + <informalexample> + <screen>&prompt.root; <userinput>mv rc.conf.orig rc.conf</userinput></screen> + </informalexample> + + <para>��� �������� ����� �� �����.</para> + + <para>��� �������������� ����� ��������</para> + + <informalexample> + <screen>&prompt.root; <userinput>vi <replaceable>filename</replaceable></userinput></screen> + </informalexample> + + <para>�������������� �� ������ ��� ������ ������ �� ���������. + <keycap>Esc</keycap> (������� ������) ��������� �������� + <command>vi</command> � ��������� �����. ��� ��������� �� ���:</para> + + <variablelist> + <varlistentry> + <term><command>x</command></term> + + <listitem> + <para>������� ������, �� ������� ��������� ������</para> + </listitem> + </varlistentry> + + <varlistentry> + <term><command>dd</command></term> + + <listitem> + <para>������� ����� ������ (���� ���� �� ������ ��� �� ���������� � + ����� ������)</para> + </listitem> + </varlistentry> + + <varlistentry> + <term><command>i</command></term> + + <listitem> + <para>������� ������ � ������� �������</para> + </listitem> + </varlistentry> + + <varlistentry> + <term><command>a</command></term> + + <listitem> + <para>������� ������ ����� �������</para> + </listitem> + </varlistentry> + </variablelist> + + <para>����� ����� ������ <command>i</command> ��� <command>a</command> �� + ������ ������� �����. <command>Esc</command> ��������� ��� ������� � + ��������� �����, ��� �� ������ �������</para> + + <variablelist> + <varlistentry> + <term><command>:w</command></term> + + <listitem> + <para>��� ������ ����� ��������� �� ���� � ����������� + ��������������</para> + </listitem> + </varlistentry> + + <varlistentry> + <term><command>:wq</command></term> + + <listitem> + <para>��� ������ � ������</para> + </listitem> + </varlistentry> + + <varlistentry> + <term><command>:q!</command></term> + + <listitem> + <para>��� ������ ��� ���������� ���������</para> + </listitem> + </varlistentry> + + <varlistentry> + <term><command>/<replaceable>text</replaceable></command></term> + + <listitem> + <para>��� ����������� ������� �� <replaceable>text</replaceable>; + <command>/<keycap>Enter</keycap></command> (������� �����) ��� + ������ ���������� ���������� + <replaceable>text</replaceable>.</para> + </listitem> + </varlistentry> + + <varlistentry> + <term><command>G</command></term> + + <listitem> + <para>��� �������� � ����� �����</para> + </listitem> + </varlistentry> + + <varlistentry> + <term><command><replaceable>n</replaceable>G</command></term> + + <listitem> + <para>��� �������� � ������ <replaceable>n</replaceable> � �����, + ��� <replaceable>n</replaceable> �������� ������</para> + </listitem> + </varlistentry> + + <varlistentry> + <term><keycombo><keycap>Ctrl</keycap><keycap>L</keycap></keycombo></term> + + <listitem> + <para>��� ����������� ������</para> + </listitem> + </varlistentry> + + <varlistentry> + <term><keycombo><keycap>Ctrl</keycap><keycap>b</keycap></keycombo> � + <keycombo><keycap>Ctrl</keycap><keycap>f</keycap></keycombo></term> + + <listitem> + <para>��� ��������� �� ����� ����� � ���ң�, ��� ��� ������ � + <command>more</command> � <command>view</command>.</para> + </listitem> + </varlistentry> + </variablelist> + + <para>�������������� � ���������� <command>vi</command> � ��ϣ� �������� + ��������, ������ ����� ���� �� ������� <command>vi + <replaceable>filename</replaceable></command>, �������� � ������ �����, + �������� ���� � ������� ��� �����. �������� <command>vi</command> + ����������� ��������� ��������, ������ ��� �� �� ����� ���� ���������� + �������, � ������ �� ������ ����������� ������� �������, ������� ������� + �����, ���� �� �� �������. (��������� ����� ������������� �������� + <command>vi</command>—�� ����� ������, ��� EDIT �� + DOS—���������� ������� <command>:r</command>.) ��� ����, ����� + ��������������, ��� �� ���������� � ������ ������, ��������� + <keycap>Esc</keycap> ���� ��� ��������� ���, � ��������� ����� � ����� + �����, ���� �������� �����-�� ��������, ����� ���������� ����� �������� + <command>:w</command> � ����������� <command>:q!</command> ��� ����, + ����� ���������� ������ � ������ �ӣ ������� (� ����� ��������� ������� + <command>:w</command>), ���� ��� �����.</para> + + <para>������ �� ������ ��������� <command>cd</command> � ������� + <filename>/etc</filename>, <command>su</command> � ������������ root, + ������������ <command>vi</command> ��� �������������� ����� + <filename>/etc/group</filename> � ��������� ������������ � ������ wheel, + ����� �� ���� ���������� ������������ root. ������ �������� ������� � + ��� ����� ������������ � ����� ������ ������ ����� �����, ������� + <keycap>Esc</keycap> � �������������� <command>:wq</command> ��� ������ + ����� �� ���� � ������. �������� ������. (�� �� ��������� ������ ����� + �������, ���� ���?)</para> + </sect1> + + <sect1> + <title>������ ������Printing Files from DOS</title> + + <para>�� ������ ������, ������ �����, ������� � ��� �� ��������, ��� ��� + ��� ������ �������� ����� �� ���������� ��������, ����������� ţ �� + �������, � ����� ������ �� DOS. �������, ��� �� ������ ����������� + �������� �� ��������� ���� ������� �� ����� (������ �����). �� ������ + ��������������� �������� <command>man chmod</command> ��� ����, ����� + �������� �� ����. �������</para> + + <informalexample> + <screen>&prompt.user; <userinput>man chmod | col -b > chmod.txt</userinput></screen> + </informalexample> + + <para>������ ���� �������������� � ������������ �������� ������� � ���� + <filename>chmod.txt</filename>, �� ������� ţ �� �����. ������ ��������� + ����������������� dos-������� � �������� a, ��������� + <command>su</command>, ������� � ������������ root, � ��������</para> + + <informalexample> + <screen>&prompt.root; <userinput>/sbin/mount -t msdos /dev/fd0 /mnt</userinput></screen> + </informalexample> + + <para>��� ������������ ������� � ������� <filename>/mnt</filename>.</para> + + <para>������ (� ��� ������ �� ����� ���� ������������� root, ��� ��� ������ + ������� <command>exit</command> ��� �������� � ������������ jack) �� + ������ ������� � �������, ��� ������� <filename>chmod.txt</filename> � + ����������� ���� �� ������� ��������� ��������:</para> + + <informalexample> + <screen>&prompt.user; <userinput>cp chmod.txt /mnt</userinput></screen> + </informalexample> + + <para>� ��������������� �������� <command>ls /mnt</command> ��� ��������� + ������ ������ �������� <filename>/mnt</filename>, ������� ������ ������ + �������� ���� <filename>chmod.txt</filename>.</para> + + <para>�� ����� ������ �������� ������� ���� �� + <filename>/sbin/dmesg</filename>, ������</para> + + <informalexample> + <screen>&prompt.user; <userinput>/sbin/dmesg > dmesg.txt</userinput></screen> + </informalexample> + + <para>� ���������� <filename>dmesg.txt</filename> �� �������. + <command>/sbin/dmesg</command> �������� ���������� �������� �������, + ������� ������� ��������, ������ ��� � Σ� ������������� �ӣ, ��� + ���������� ��� �������� FreeBSD. ���� �� ������ �������� ������� � + ������ �������� &a.questions; ��� � ����������� USENET—��������� + <quote>FreeBSD �� ����������� ����� ���������� ����������, ��� ��� + ������?</quote>—���������� ������� ������, ��� ������ + <command>dmesg</command>.</para> + + <para>������ �� ������ (��� root) �������������� ������ ����, ����� ��� + ������, �� �������</para> + + <informalexample> + <screen>&prompt.root; <userinput>/sbin/umount /mnt</userinput></screen> + </informalexample> + + <para>� ��������������� � DOS. ���������� ��� ����� � ������� DOS, + �������� �� ��� ������ ��������� DOS EDIT, &windows; Notepad ��� + Wordpad, ��� ���� � ��������� �����������, ������� ��������� ���������, + ����� ���� ����������, � ����������� ��� ������� ������� �� DOS ��� + Windows. ��������, ��� �����������! ���������� �������� ����� ����� + �������� ��� ������ �������� DOS <command>print</command>. (����������� + ������ �� FreeBSD �� �������������� ������ DOS � ��������� ������� �ӣ + �ݣ ������� ����������� ��������.)</para> + + <para>������� ��������� �������� �� ������ �� FreeBSD �������� � ���� + �������� ��������������� ������ � ����� + <filename>/etc/printcap</filename> � �������� ������� �������� ������� � + <filename>/var/spool/output</filename>. ���� ��� ������� ��������� � + <hardware>lpt0</hardware> (��, ��� � DOS ���������� + <hardware>LPT1</hardware>), �� ��� ���������� ������ ������� � ������� + <filename>/var/spool/output</filename> � (��� root) ������� ������� + <filename>lpd</filename>, ������: <command>mkdir lpd</command>, ���� ţ + �ݣ �� ����������. ����� ������� ������ �����������, ���� ��� �������� + ������� �� ����ޣ�, � ������� <command>lp</command> ��� + <command>lpr</command> ������ �������� ���� �� �������. ����� �� ���� + ������������� ���������, ������� �� ��� ���������, ������� ������� � + <ulink URL="../../books/handbook/index.html">����������� + FreeBSD.</ulink></para> + </sect1> + + <sect1> + <title>������ �������� �������</title> + + <variablelist> + <varlistentry> + <term><command>df</command></term> + + <listitem> + <para>������ ������ � ������� ������� ������������ � �������������� + �������� ��������.</para> + </listitem> + </varlistentry> + + <varlistentry> + <term><command>ps aux</command></term> + + <listitem> + <para>���������� ���������� ��������. <command>ps ax</command> + �������� �������������������� ������.</para> + </listitem> + </varlistentry> + + <varlistentry> + <term><command>rm <replaceable>filename</replaceable></command></term> + + <listitem> + <para>������� <replaceable>filename</replaceable>.</para> + </listitem> + </varlistentry> + + <varlistentry> + <term><command>rm -R <replaceable>dir</replaceable></command></term> + + <listitem> + <para>������� ������� <replaceable>dir</replaceable> � ��� ��� + �����������—���������!</para> + </listitem> + </varlistentry> + + <varlistentry> + <term><command>ls -R</command></term> + + <listitem> + <para>������ ������ ������ � ������� �������� � ���� ��� + ������������; � ����������� �������, <command>ls -AFR > + where.txt</command>, ��� ��������� ������� ���� ������ � + <filename>/</filename> � (��������) <filename>/usr</filename> �� + ����, ��� ����� � ����� ����������� ������� ������ ������.</para> + </listitem> + </varlistentry> + + <varlistentry> + <term><command>passwd</command></term> + + <listitem> + <para>��� ��������� ������ ������������ (��� root)</para> + </listitem> + </varlistentry> + + <varlistentry> + <term><command>man hier</command></term> + + <listitem> + <para>���������� �������� �� �������� ��������� &unix;</para> + </listitem> + </varlistentry> + </variablelist> + + <para>����������� <command>find</command> ��� ������ + <filename>filename</filename> � <filename>/usr</filename> ��� � ����� �� + ţ ������������ ��� ������ �������</para> + + <informalexample> + <screen>&prompt.user; <userinput>find /usr -name "<replaceable>filename</replaceable>"</userinput></screen> + </informalexample> + + <para>�� ������ ������������ <literal>*</literal> � �������� ������� ������ + <parameter>"<replaceable>filename</replaceable>"</parameter> + (��� ��������� ������ ���� � ��������). ���� �� ������� ������� + <command>find</command> �� ����� � <filename>/</filename>, � �� � + <filename>/usr</filename>, �� ��� ����� ������ ����(�) �� ���� + �������������� �������� ��������, ������� CDROM � ������ DOS.</para> + + <para>���������� ��������, ����������� ������� � ������� &unix;, �������� + ����� Abrahams & Larson, <citetitle>Unix for the + Impatient</citetitle> (2nd ed., Addison-Wesley, 1996). ����� ���������� + �� &unix; ���� � � Internet. ���������� ����� �� <ulink + URL="http://www.geek-girl.com/unix.html">Unix Reference + Desk</ulink>.</para> + </sect1> + + <sect1> + <title>��������� ����</title> + + <para>������ �� ������ ����� �����������, ������� ���������� ������� ��� + ����� � ������ ������������� �����, ��� ��� �� ������ ������ ��������� + �ӣ, ��� ������. ����� �������� ���������� ���������� � ����������� �� + FreeBSD (�������, ������ �����, ���� �� ����� ֣����� �����) � <ulink + URL="../../../../index.html">Web-����� FreeBSD</ulink>. �� CDROM, � + ����� Web-����� ��������� ��������� ������� � �����. � ����������� + �������������� ����� �������� � ���, ��� �� ������������ (�������� + ������, ���� �� ����������, �������� <command>pkg_add + /cdrom/packages/All/<replaceable>packagename</replaceable></command>, + ��� <replaceable>packagename</replaceable> �������� ������ ����� � + ��������). �� CDROM ��������� ������� �������� � ������ � �� �������� + ���������� � ������ <filename>cdrom/packages/index</filename>, + <filename>cdrom/packages/index.txt</filename> � + <filename>cdrom/ports/index</filename>, � ����� ������ �������� ����� + ����� � <filename>/cdrom/ports/*/*/pkg/DESCR</filename>, ��� ����� + <literal>*</literal> ���������� ������������ ����������� � ����������� + � ���������� ��������, ��������������.</para> + + <para>���� �� ����������, ��� ����������� ������� ������� ������� ������ + (��� � <command>lndir</command> � �ӣ) �� ��������� ������ � CDROM, ��� + ������, ������� ������ �����������:</para> + + <para>������� ������ ��� ����, ������, <command>kermit</command>. �� CDROM + ��� ���� ������ ������������ �������. ���������� ���� ���������� � + ������� <filename>/usr/local</filename> (������� ����� ��� ������������ + �����������, ������� �� ����������, � ������� ������ ���� �������� ���� + �������������) ����� ��������:</para> + + <informalexample> + <screen>&prompt.root; <userinput>cp -R /cdrom/ports/comm/kermit /usr/local</userinput></screen> + </informalexample> + + <para>� ���������� ������ ������������ ���������� + <filename>/usr/local/kermit</filename>, ���������� ��� �����, ��� ���� � + ����������� <command>kermit</command> �� CDROM.</para> + + <para>����� �������� ������� <filename>/usr/ports/distfiles</filename>, + ���� �� �ݣ �� ����������, ��� ������ ������� <command>mkdir</command>. + ������ ��������� ���������� <filename>/cdrom/ports/distfiles</filename> + �� ������� ������� ����� � ������, ��������� � ���, ��� ��� ��� ����, + ������� �� ������ �����. ���������� ���� ���� � ������� + <filename>/usr/ports/distfiles</filename>; � ��������� ������� �� ������ + ���������� ���� ���, � FreeBSD �������� ��� �� ���. � ������ � + <command>kermit</command>, ��������������� ����� �� ����������.</para> + + <para>����� ����� �� ������� <command>cd</command> ��������� � ���������� + <filename>/usr/local/kermit</filename>, � ������� ���� ���� + <filename>Makefile</filename>. ��������</para> + + <informalexample> + <screen>&prompt.root; <userinput>make all install</userinput></screen> + </informalexample> + + <para>�� ����� ���������� ��� ��������� � FTP ��� ��������� ���� �������� + ������, ������ ��� � ������� �� ������� �� CDROM ��� � �������� + <filename>/usr/ports/distfiles</filename>. ���� ���� � ��� �ݣ �� + ��������, � ����� ��� ����� � �������� + <filename>/cdrom/ports/distfiles</filename> ���, ��� ����������� �������� + �������������� ���� �� ������ ������ � ����������� ��� � ������� + <filename>/usr/ports/distfiles</filename> ����� ������� ��� ��� ������ + DOS. �������� <filename>Makefile</filename> (��� ������ ������ + <command>cat</command>, <command>more</command> ��� + <command>view</command>), ����� ������, ���� ����� ���������� (�� + �������� ���� ���������������) ��� ��������� ����� � ������ ��� ��������. + ��� ��� ����� ��������� ��� ������� � DOS, � ����� ����, ��� �� + ������ӣ�� ��� � ������� <filename>/usr/ports/distfiles</filename>, �� + ������ ��� ������������� (�� ������� <command>mv</command>) � ��� + �������������� ��������, ����� �� ��� ���� ������. (����������� �������� + ��� �������� ������!) ����� ��������� ������� � ������� + <filename>/usr/local/kermit</filename>, ������� ������� � + <filename>Makefile</filename> � �������� <command>make all + install</command>.</para> + + <para>�ݣ ����� ���������, ������������� ��� ��������� ������ ��� ��������, + �������� �� ����������� � �����-�� ������ ���������. ���� ��������� + ����-���� ������������ � ������� ��������� <errorname>can't find + unzip</errorname> ��� ��� ���������, ��� ����� ������������� ��������� + ������� ��� ����� ��� ������� unzip, ����� ����������.</para> + + <para>����� ����, ��� ��������� ����� ���������, �������� ������� + <command>rehash</command> ��� ����, ����� ��������� FreeBSD ���������� + �����, ����������� � ��������� ������, ����� ������� ���������� �� + ���������. (���� �� �������� ����� ��������� <errorname>path not + found</errorname> ��� ������������� <command>whereis</command> ��� + which, �� ��� ���������� ������� ���������� � ������� ��������� � + ������� ����������� �������� � ����� <filename>.cshrc</filename>, + ����������� � ����� �������� ��������. ������� �������� � &unix; ��ӣ� + �� �� ����� �������, ��� � � DOS, �� ����������� ������ � ������� + ��������� (�� ���������) �� ������������ ������������; ���� �������, + ������� �� ������ ���������, ��������� � ������� �������, ��� ����� + �������� <filename>./</filename> ����� ��������� �������, ����� ��� + ����������; �������� ����� ����� ������� �� �����.)</para> + + <para>��� ����� ������������� �������� ����� ��������� ������ &netscape; � + �� <ulink URL="ftp://ftp.netscape.com/">FTP-�����</ulink>. (&netscape; + ������� X Window System.) �� ������ ������ ���������� � ������ ��� + FreeBSD, ��� ��� ���������� ������ ������������. ������ �������������� + �������� <command>gunzip <replaceable>filename</replaceable></command> � + <command>tar xvf <replaceable>filename</replaceable></command> � + ���������� ������, ���������� ��� � ������� + <filename>/usr/local/bin</filename> ��� ����-�� �ݣ, ��� �������� + �������� �����, ��������� ������� <command>rehash</command>, � ����� + �������� ��������� ������ � ����� <filename>.cshrc</filename> � �������� + ��������� ���� ������������� ��� (��� �����) � ���� + <filename>/etc/csh.cshrc</filename>, ������������� ���� ��� ������� + <command>csh</command>:</para> + + <informalexample> + <programlisting>setenv XKEYSYMDB /usr/X11R6/lib/X11/XKeysymDB +setenv XNLSPATH /usr/X11R6/lib/X11/nls</programlisting> + </informalexample> + + <para>��� ���� ��������������, ��� ���� <filename>XKeysymDB</filename> � + ������� <filename>nls</filename> ��������� � + <filename>/usr/X11R6/lib/X11</filename>; ���� ��� �� ���, ������� �� � + ��������� ����.</para> + + <para>���� ���������� �� �������� &netscape; � ���� ����� ��� ������ CDROM + (��� FTP), �� ��������� ���� <filename>/usr/local/bin/netscape</filename> + ����� �������� ������ netscape; ��� ����� ���� ������ ���������� + ����������, ������� ����������� ��� ��� ���������� ���������. ������ + ����� ������������ ����� �������� ���� � + <filename>netscape.bin</filename> � �������� ������ �������� ����, � + ������ <filename>/usr/local/netscape/netscape</filename>.</para> + </sect1> + + <sect1> + <title>���� ������� ���������</title> + + <para>��� ��������� ��������� �������� ����� ������ ������ ������ �������� + ���������. � DOS ������� ��������� �������� command.com. �������� + ���������� �������������� ������, ������� �� ������� � ��������� ������, + � ����� ������� ��������������� � ��������� ������ ������������ �������. + �� ������ ����� ������ ������� ���������� ����������, ������� ������ �� + .bat-����� DOS: ��� ������������������ ������, ������� ������ ����������� + ��� ������ �������.</para> + + <para>������ � FreeBSD ��������������� ��� ��������� ����������: + <command>csh</command> � <command>sh</command>. + <command>csh</command> ����� ��� ������ � ��������� ������, ������ + ������� ������ �������� �� ����� �������� <command>sh</command> (��� + <command>bash</command>). �� ������ ��������, ����� ��������� ��������� + � ��� ������������, ������ <command>echo $SHELL</command>.</para> + + <para>�������� <command>csh</command> ���������, ������ + <command>tcsh</command> ����� �ӣ, ��� ����� <command>csh</command> � + �ݣ ������. ��� ��������� ��� ��������������� ������� ������� ��������� + �� ��������� � ������������� ��. � Σ� ���� �������������� �ͣ� ������ + �� ������� ������� ��������� (� <command>csh</command> ������������ + ������� <keycap>Esc</keycap>) � �� ��������� ��� ������������� � �������, + � ������� �� ���� �����, �� ������� <command>cd -</command>. ����� + � <command>tcsh</command> ������� ����� �������� ��������� �����������. + ��� ������� �������� �����.</para> + + <para>��� ��� ���� �� ��������� ������ ���������� ����������:</para> + + <procedure> + <step> + <para>���������� ��������� ��������� ��� ���� ��� ������, ��� �� ������ + ��� ������� � ������ ������ ��� ��������. ����������� + <command>rehash</command> � <command>which tcsh</command> + (��������������, ��� �� �������������� <command>tcsh</command>) ��� + �������� ����, ��� ��������� ��������� ����������.</para> + </step> + + <step> + <para>������� ��� ������������ root, �������������� ���� + <filename>/etc/shells</filename>, ������� � ���� ������ � ����� + ���������, � ����� ������ ��� + <filename>/usr/local/bin/tcsh</filename>, � ��������� ����. + (��������� ����� ����� ������ ��� �� ���.)</para> + </step> + + <step> + <para>�������������� �������� <command>chsh</command> ��� ����� + ��������� ������������ ���� �������� �� <command>tcsh</command>, ���� + �������� <command>tcsh</command> � ��������� ������ ��� ����� + ����� �������� ��� ���������� ����� � �������.</para> + </step> + </procedure> + + <note> + <para>������ ��������� ��������� ��� ������������ root �� ���-��, + ������������ �� <command>sh</command> ��� <command>csh</command>, + � ������ ������� FreeBSD � �� ������ ������ ������� &unix; ������; �� + ������ �������� ���������� �������� ��� �������� ������� � + �������������������� �����. �������� �������� ������������� + <command>su -m</command> ��� ����, ����� ����� ������������� root, ��� + ���� � �������� �������� <command>tcsh</command>, �� �� ������ �������� + ������������� root, ������ ��� �������� �������� ������ ���������. �� + ������ ������� ��� ����������, ������� � ��� ���� + <filename>.tcshrc</filename> � �������� ������ �� ����� �������:</para> + + <programlisting>alias su su -m</programlisting> + </note> + + <para>��� ������� <command>tcsh</command> �� ����� ��������� ����� + <filename>/etc/csh.cshrc</filename> � + <filename>/etc/csh.login</filename>, ��� � <command>csh</command>. ��� + �������� ����� ������ ���� <filename>.login</filename> �� ������ + ��������� ��������, � ����� ���� <filename>.cshrc</filename>, ���� ������ + �� �� ������� ���� <filename>.tcshrc</filename>. ��� �� ������ ������� + ������� ������������ ����� <filename>.cshrc</filename> � + <filename>.tcshrc</filename>.</para> + + <para>������, ����� � ��� ���������� ��������� ��������� + <command>tcsh</command>, �� ������ ��������� ����������� ��������� + ������. ��� ����������� ����� ����� �� �������� ������� �� + <command>tcsh</command>, �� �ӣ �� ��� ������, ������� ���������� � ��� + ���� <filename>.tcshrc</filename>, ������� ����� ��������, ������� ������ + �� ��� �������, ������� ������ ������� � � ����� �������� �� ����������. + ��� ����� ������ <literal>></literal>, ���� �� ��������� ������� + �������������, � <literal>#</literal>, ���� �� ��������� ������������� + root, ������ tsch ����� ������ ��� � ����� ������:</para> + + <para>set prompt = "%h %t %~ %# "</para> + + <para>��� ������ ������ ���� ���������� �� �� �� ����� �����, ��� � + ������������ ������ ��������� �����������, ���� ��� ����, ���� ����� + ������ "if($?prompt) then", ���� ţ ���. ��������������� ������ + ������; �� ������ ������� ��������� � ��� �������, ���� �������ԣ�� ţ. + �� �������� � �������� � ��������. �� ������ ��������� ���������� + <filename>.tcshrc</filename>, ������ + <command>source .tcshrc</command>.</para> + + <para>�������� ������ ������������� ���������� ��������� �� ������ + ��������, ������ <command>env</command> � ����������� ��������� ������. + � ����������, ����� ����� �������, ����� �������� ��������, ������������ + �� ���������, ��������� ������������ ������ � ��� ���������. ��������, + �������� ��� ����� � ������� � ���̣����� ����� � ������������� ������� + ���������, ������ ��� �������� �� �������� ���������� �������������, + �������� ������� <command>setenv TERM vt100</command>.</para> + </sect1> + + <sect1> + <title>���������</title> + + <para>������� ��� ������������ root, �� ������ �������������� CDROM �� + ������� <command>/sbin/umount /cdrom</command>, �������� ��� �� �������, + �������� ������ ���� � ������������ ��� �������� + <command>/sbin/mount_cd9660 /dev/cd0a /cdrom</command>, ��� ���� + ��������������, ��� <hardware>cd0a</hardware> �������� ������ ���������� + ��� ������ ������� CDROM. ����� ��������� ������ FreeBSD ��������� ��� + ����������� CDROM ������ �� ������� + <command>/sbin/mount /cdrom</command>.</para> + + <para>������������� ����� �������� �������—��� ��������� �� ������ + ����� FreeBSD �� ������ CDROM—������� ��� �������� ������������. + ��, ��� ��������� � ���� �������� �������, �������� �� ������ � ������. + �� ������ ���������� �������� � ���� � CDROM. ��� ���� ����������� + ������� <command>lndir</command>, ������� ��������������� � X Window + System, � ������ ��� �������� ����������, ��� ������ ����������� �����, + ������ ��� ��� ��������� � �������� ������� <filename>/cdrom</filename>, + � �� � <filename>/usr</filename> � ţ ������������, ��� ������ + ����������. �������� ������� �� ������� + <command>man lndir</command>.</para> + </sect1> + + <sect1> + <title>��������� ��������������</title> + + <para>���� �� ����������� ��� �����������, ��� ����� ��������� �����, � + ����� ����� ��� �������� ��������� � ��� ������� �� ����, ���, �� ������ + ������, ������ ���� �������� �������. ��� ������������� Eugene W. Stark, + ���������� ����������� � SUNY-Stony Brook, � John Fieber �� ������ + ������.</para> + + <para>Annelise Anderson, + <email>andrsn@andrsn.stanford.edu</email></para> + </sect1> +</article>