(c) Larry Ewing, Simon Budig, Garrett LeSage
� 1994 �.

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

������ | ����� | � ������� | ��������� ��������� | ����������� ��� | �������� ���/AMICT
���������� | ���������� | ������� ������� | ������-��������� | �������� � ��������� ������
�������������� ������� | ���������� | ����� �������� | ���������� ����������

���� ������

�������� ������ ���������� ������� � ���������� � ������� ������ ����� bash. ��������� ��������� ����� �� �������� �������, ������������� � ������������� ����� ������� �� ����� � ��������, ��������� ������� � ������������� ������. ������� ��������� �������, ������������ ���������� Posix.2:

ls (-ld) chmod chown chgrp mkdir (-m) ln (-s) find (-exec, -maxdepth, -perm) du (-sh)

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

��� 1 (�������).
��������� ���������� ����������� man, whatis, apropos, info ������� ����� ���������� ������, ������������� � ������� "���� ������".

��� 2 (����� �������).
1. �������� ������� ��� ���������� ������������ #3. � ��� �������� ������� dir_test. ���������, ����� ����� ������� ����� ������� �� ���������.
2. �������� ����� ������� ��� dir_test ���, ����� ����� ����� ��������� �� ���� ����� �� ������.
3. � �������� dir_test �������� ���������� subdir_test c �������, ������������ ������ ������ ��� ���������, ������ ������ ��� ��������� � ������, ���������� (�������) ������ ��� ���������.
4. � �������� subdir_test �������� ��� ����� text1, text2, text3. ���������, ����� ����� ������� ����� ������� ���� �� ���������.
5. �������� ��� ���� ���� ������ ����� �� ������ ��� ���������.

��� 3 (������).
1. �������� � �������� dir_test ���������� textlinks, � ������� ���������� ������������� ������ �� ����� text1, text2, text3.
2. �������� � �������� dir_test ��� ������� ������ �� ���� text1. ��������� ���������� ������� ������ � ������� ������� ls -l.
3. ���������� �� ������� ����� ������������� ������ �� ������� dir_test.

���������, � ��� ������� ������� ����� �������� � �������������� ��������. ����� �� �� ������� ��������� ������� � ������������� ������?

��� 4 (�����).
��� ���������� ��������� ������� ����������� ����� -exec ��� ������� find (��. ������ 11 � ������ 4). ���������� ������� ��������� � ���� commands.

 #   �������   ������� 
1 ������� � �������� �������� � ��� ������������ ��� �����, ����� ������� ������������ �� ~. ����� �����, ��������, ������� �������� emacs, �������� ���������� ������ ����������� ����� find, rm
2 ������� ����� ��������� ������������ ���������� ������ ������������ ��������� �������� find, du
3 ������� �������� ������� ���� ���������, ������� ��������� ������ � ���� �������� ������� find, basename

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

�� ������� ����� �������� 8 ������. ��� ���� ������� ������ ���� ��������� ���������, ��������� � ����, ����� ������ �������� ����������� ������� � ����� ��������� ���� �������� �������: ����� �������, ������� ������, ������������� ������.

������� ������, �� ������ ������������������ 1) ������ �������� �� ���������� �������� (man, whatis, apropos, info); 2) ������ ������ ���������� ����������� � ������� "���� ������" ������ (��������, echo — ����� ������ ������); 3) ������ �������� � �������� chmod; 4) ������ ��������� ����� �� �������� ������� � �������������� ��������� ����� ������� find.