�������: ������ (���� | �����������) ��RU opennet.me  
The OpenNET Project / Index page

[ ������� /+++ | ����� | ���� | ]

������� ������������ / ������ "������������ ��� Linux" / ���������� ���������
next up previous contents index
Next: �������� bash Up: ������ ������ Previous: ������������� ������������ � Linux   Contents   Index

������� � �� ����������

���������� �������� ��������� ����������, ����������� ������������ ������� - ������ ��������� ������������������ ������. ��������, ���������� hostname ������� ������� ���, ����������� ������ ������, � ���������� who ������� ������ �������������, ������������������ � ������� � ������� ������. ����� �������� ���������, ����������� ������� ���� �����, ��������, ��������� ����������� ��� �������������� ������, ���������� �����������.

� ����������, � ���������� ����� ��������� ��� ���������� (���������� ����� ``�������'' ��� ``�������''), ������� ���������� ��������� �� ���������. ��� ����� ����� ��������� ���������, ������������ ���� ��� ���������. ��������� ������ ����������� ����� ���� ��������� ����������.

�������� ���������� ������������ ����������� ��� ���������� ������ � ������������� ������� � �����������. ��������� ��� ���������� ������ ����� ���������� ���� �������� �������� ����������� ������ �� ����, ����������� ����� ����� �������� ���������.

������� � ����� ����� � �������� �����������; �������� ������������ � ���������� ������ ������������ ��������� �������.

����� ��������� ��������� ��� ���������� ��� �������� ��� �����-���� ���������� ��� ����������, �������� ��� ��� ����� ����������� shell � ������� [Enter]. ��������, ��� ������� ����������� hostname, �������:

   $ hostname [Enter]
   student_1
   $
������� ��� ������ ������� `student_1'.

����� ������ ���������� �� ����� ���� `-', �� ������� ������� ����� ��� �����. ����� �������� ����� � �������, �� ��������� �� ������ ����������� ��� ����������. ���������� ������ ��������� �������� �����������, ����� � ������ �� ���������� ���������.

������ ����� ���� �� ���� ����� ��������� ���������. ��������, hostname �������� ����� `-F', ����������� ������� ��� �����, �� �������� ����� ��������� ������� ��� ; � �������� ��������� ��� ��������� ��� �����. ��������, ��� ������� hostname � ������� ������ `host.info' �������:

$ hostname -F host.info [Enter]



Alex Otwagin 2002-12-16



������:
PostgresPro
Inferno Solutions
Hosting by Hoster.ru
�������:

�������� �� �����
���������� �� ���������
Created 1996-2026 by Maxim Chirkov
��������, ����������, ����������