Xenix
1.
1.1.
-
XENIX. .
" ",
, ,
.
, , , -
.
"" , , , -
,
.
_______________________________________________________
,
XENIX,
, ,
.
__________________________________________________
1.2. XENIX
XENIX -
-
. -
XENIX, , -
: -
XENIX
XENIX.
1.3. XENIX
XENIX
XENIX. -
, -
. , ,
, -
, .
XENIX "" "-
" . -
- 1 -
, -
.
-
,
, -
.
UNIX ( , XENIX)
, -
,
-
. , XENIX
MS-DOS, -
16
. , DOS,
XENIX ,
DOS. XENIX
-
, -
, ,
Microsoft.
, XENIX:
- -
XENIX.
, "shell" XENIX
.
-
. ,
.
- - -
: , -
, -
, -
- .
- , -
.
- .
XENIX
, -
,
.
, -
,
.
- 2 -
- -"".
- ,
-
.
-
,
,
-
, .
- , , -
.
1.4.
:
1, "",
XENIX.
2, " ", -
XENIX.
3, " ", -
, ,
. -
, ,
-.
4, "", , -
XENIX.
- 3 -
2.
2.1.
, -
,
XENIX, . ,
, ,
, ,
.
2.2. ,
, ,
XENIX.
.
- ; ,
. ,
. XENIX mkuser(C) -
-
.
XENIX, ,
. ,
, - ,
. XENIX
, ,
, .
. XENIX -
.
2.3.
"login:"
. -
, , , , -
,
.
, -
BREAK INTERRUPT.
"login:",
, RETURN;
, .
, . ,
, .
. RETURN
, .
- 4 -
TERM=(unknown)
(, ansi)
RETURN.
"-
", , ,
.
('$') ('%').
, ,
, :
You have mail
( )
,
.
2.4.
, -,
, . -
:
date
RETURN.
:
Mon Jun 16 14:17:10 EST 1985
RETURN ,
. RETURN
, ,
.
RETURN ENTER CR,
.
, ,
who, , -
. who :
you console Jan 16 14:00
joe tty01 Jan 16 09:11
ann tty02 Jan 16 09:33
, ,
; ttynn -
, nn
. console -
- 5 -
,
.
, -
. , -
:
whom
:
whom: not found ( )
, ,
, XENIX.
who
WHO
, XENIX -
, .
,
echo. :
echo hello world
-
:
hello world
:
echo hello world>>greeting.file
echo
,
greeting.file. ,
('>>') "" .
:
ls
, . -
, :
cat greeting.file
- 6 -
"cat" (concatenate).
cat - -
.
,
XENIX , cat -
. -
,
:
hello world
greeting.file, :
rm greeting.file
, XENIX -
. , cp
"copy", ls - "list", cat -
"concatenate", mkdir -
"make diretory", chmod - "change
mode".
2.5.
,
, ,
RETURN. BKSP
. -
BKSP
, . ,
- , -
. , :
ddBKSPateRETURN
,
dateRETURN
Ctrl-u
. ,
, Ctrl-u
.
BKSP Ctrl-u ,
('\'),
"" -
. BKSP Ctrl-u ,
"\BKSP" "\Ctrl-u".
Ctrl-u,
.
Ctrl-u .
- 7 -
, -
BKSP : "\BKSPBKSP".
XENIX
, ,
. , , -
BKSP Ctrl-u
XENIX, , -
stty(C).
2.6.
XENIX ,
,
, , , XENIX
, .
, , -
, -
. ,
(.. " -
") ,
. ,
;
,
('$').
2.7.
.
-
, , ,
;
.
Ctrl-q. -
, ( -
) . Ctrl-s
, Ctrl-q
. ,
, Ctrl-q ,
stty(C)
XENIX
.
, " ".
2.8.
-
, INTERRUPT
( DEL,
DELETE, Ctrl-c RUBOUT).
BREAK, -
. , ,
- 8 -
, INTERRUPT
, -
, .
" -
", INTERRUPT.
2.9.
XENIX,
.
Ctrl-d .
, -
. -
Ctrl-d, .
3.
,
XENIX.
, ,
, , ,
. -
.
3.1.
XENIX.
XENIX
: (, ,
""), .
.
3.1.1.
,
, . -
. -
8-
.
,
, ,
. -
:
- ( ).
- ,
i-.
- .
- 9 -
- .
- .
- .
- .
. -
--.
-
,
. ,
.
. ,
, , .
chmod.
4 .
3.1.2.
,
, , , -
. "
". .
3.1.3. -
- - ,
,
, ( )
.
i- , -
. i- -
, .
i-.
/ i- ().
ls
, .
i- ls
.
-
, XENIX -
.
.
,
.
- 10 -
--.
, -
.
, -
. ,
, ,
. , , -
,
.
, -
chmod. , ,
umask.
3.1.4.
-
,
. , -
, XENIX
.
,
-
. "" - . -
.
,
.
, -
.
,
.
- .
3-1.
usr
/| / | / | adam eve mary
/ / text1 / text
text temp
3-1 .
3-1 usr
. , text
mary
eve. ,
eve,
eve mary ,
,
, -
. , mary
- 11 -
eve, :
pr /usr/eve/text
eve ,
mary:
ls /usr/mary
3.2.
- ,
. XENIX -
, -
, , , . -
, XENIX - ,
.
,
XENIX ,
" ". 3-2
-
. -
, .
i- ; -
"".
,
"" . -
, (
),
.
. -
-
XENIX, -
.
/ ()
/| / | / | bin usr dev
/ / cmd / tty
doug neil
/ | | / | | mail news text data
3-2
3-2 "" .
bin, usr, doug neil
. XENIX ,
"/". mail, news,
text data ,
"" . , cmd -
, . tty -
.
- 12 -
3.3.
XENIX , -
,
( ).
-
.
;
. -
John
Albert Smith,
John.
3.3.1.
, -
('/'). , -
. -
. ,
-
. -
.
, -
, -
.
, -
. ,
""
ls. ls -a
. ('-')
,
. ,
('?'), ('*'), ('[' ']'),
, -
.
3.3.2.
,
-
, ('/').
,
, -
.
" " ( -
" ").
-
, .
,
- 13 -
-
.
, ,
" ",
-
. ,
, "
", -
.
cd. -
pwd.
3.3.3.
:
/
.
/bin ,
XENIX.
/usr , .
/usr/bin -
XENIX,
/bin.
/dev , , -
(, ,
).
/dev/console
.
/dev/tty
.
/lib , ,
.
tmp .
/usr/joe/project/A
;
A project, -
joe.
bin/x
; -
x bin -
. (/),
/bin/x.
- 14 -
/usr/joe,
/usr/joe/bin/x.
file1
.
XENIX -
, .
"" .
. XENIX -
.
:
. .
./xxx xxx,
.
.. "" -
. ../..
, -
.
3.3.4.
XENIX
-
, -
. , ,
-
, .
, ,
. ,
XENIX vi
.
. , , -
. ,
:
chap1
chap2
...
:
- 15 -
chap1.1
chap1.2
chap1.3
...
chap2.1
chap2.2
...
,
.
-
, .
, -
? :
lpr chap1.1 chap1.2 chap1.3 ...
.
, : ,
, -
. :
* .
[] .
? .
, :
lpr chap*
XENIX ('*') "
",
, "
, "chap"".
lpr; .
,
, :
ls chap*
:
chap1.1
chap1.2
chap1.3
...
- 16 -
;
.
, -
. :
cat *
.
. ,
1 4 9.
:
lpr chap[12349]*
( [ ] )