Id - ;
finger user_name - user_name;
last - ;
who - ;
write - .
, .
:
1.,
2.
3..
:
1. (),
2., ,
3. , .
, , ( ls). , . , (, , ). , . . , , cd.
, ls - l. , , , .
:
/home/ivanov/docs# ls -l report1303
-rw-r--r-- 1 ivanov users 505 Mar 13 19:05 report1303
(-rw-r--r--) . (ivanov), , (users). (report1303). ls.
ivanov users. -rw-r--r-- , -, .
(-) . - , , ( d) .
(rw-) , ivanov. r read (. ), w write (. ). , ivanov () report1303.
w x, (. execute, ) . -, x, , ivanov . , report1303 .
|
|
(r--) . - users. r, users , .
, ( r--) , users. r,
, . , -rwxrwxrwx, , , . , , .
, root ( ), , . , .
chmod.
chmod ( ) . .
- , ( ):
00400 .
00200 .
00100 ( - ) .
00040 .
00020 .
00010 () .
00004 .
00002 .
00001 () .
, . , . , :
(u) | (g) | (o) |
rwx | rwx | rwx |
:
[]
u, g o (, ). a, ugo.
: + ( ), - ( ), = ( , ).
- ( ):
r .
w .
x ( ).
, chmod u+w,go+x f1
f1, - . .
|
|
.
2. putty ( putty.org ) ( ).
ssh 195.209.66.3.
.
http://hpc.icc.ru/documentation/cmnds.pdf
:
1. . ( )?
2. Glava1, Glava2 Glava3. Glava3 myname.txt, :
2. myname.txt Glava2 Glava3 fio.txt.
3. Glava1 ( ) .
4. Glava2 myname1.txt.
5. fio.txt , , .
6. myname1.txt fio.txt result.txt, Glava1.
7. Glava2.
8. - dir Glava1 myinfo.txt, Glava1, .
9. myinfo.txt : . . . .
10. Glava3, Glava1 .
11. Glava1 hello.c, :
#include <stdio.h>
main()
{
printf("hello world! \n ");
}
gcc hello.c. a.out. a.out. (./a.out).
12. .txt , .ttt.
13. Glava1\myname.txt . , -.
14. Glava1.
15. Glava1\myname.txt
16. Glava1.
17. .
18. ls cd man info. man-. ls cd whatis apropos. ?
19. , .
20. . ? , /home /?
21. ( ) , .
( ) - , . , .
cat , , vi. , , , Leafpad.
C cmd ( ), :
|
|
echo How do you do! # ,
date #
pwd #
ls #
# .
sh ~/cmd. : chmod +x ~/cmd, .. ( ) (+).
bash- : #!/bin/bash.
#! bash-, (, whereis bash) .
# ( ).
bash ( )