UNIX
UNIX
Third Edition
K. Thompson
D. M. Ritchie
February, 1973
In particular, _ a_n_
y _s_y_
s_t_
e_m _w_
h_i_
c_h _u_
s_e_
s _a _P_D_
P_-_
1_1_
/_2_
0 _p_r_
o_c_
e_s_
s_o_
r
w_
_ i_
l_l _
n_o_
t _i_n_
c_l_
u_d_
e _a_l_
l _t_h_
e _s_o_
f_t_
w_a_
r_e _d_
e_s_
c_r_
i_b_
e_d _h_
e_r_
e_i_
n_, _n_
o_r _w_
i_l_
l
t_
_ h_
e _s_
o_f_
t_w_
a_r_
e _b_e_
h_a_
v_e _t_
h_e _s_
a_m_
e _w_a_
y_. The second, or even the
first, edition of this manual is likely to be more appropri-
ate.
- ii -
INTRODUCTION TO THIS MANUAL
I. Commands
II. System calls
III. Subroutines
IV. Special files
V. File formats
VI. User-maintained programs
VII. Miscellaneous
VIII. Maintenance
- iii -
The special files section IV discusses the characteristics
of each system "file" which actually refers to an I/O
device. Unlike previous editions, the names in this section
refer to the DEC device names for the hardware, instead of
the neames of the special files themselves.
The n
_a_m
_e_ section repeats the entry name and gives a
very short description of its purpose.
The s
_y_n
_o_p
_s_i
_s_ summarizes the use of the program being
described. A few conventions are used, particularly in
the Commands section:
- iv -
A final convention is used by the commands them-
selves. An argument beginning with a minus sign "-"
is often taken to mean some sort of flag argument
even if it appears in a position where a file name
could appear. Therefore, it is unwise to have files
whose names begin with "-".
The d
_e_s
_c_r
_i_p
_t_i
_o_n
_ section discusses in detail the subject
at hand.
The f
_i_l
_e_s
_ section gives the names of files which are
built into the program.
A s
_e_e
_ a
_l_s
_o_ section gives pointers to related informa-
tion.
A d
_i_a
_g_n
_o_s
_t_i
_c_s
_ section discusses the diagnostics that
may be produced. This section tends to be as terse as
the diagnostics themselves.
The b
_u_g
_s_ section gives known bugs and sometimes defi-
ciencies. Occasionally also the suggested fix is
described.
- v -
The assistance of R. Morris is gratefully acknowledged.
- vi -
HOW TO GET STARTED
L_
_ o_
g_g_
i_n_
g _
i_n
To use UNIX, you must have a valid UNIX user name, which may
be obtained, together with the telephone number, from the
system administrators.
T_
_ T_
Y _
3_7 _
t_e_
r_m_
i_n_
a_l
UNIX will type out "login: "; you respond with your
user name. From the TTY 37 terminal, and any other
which has the "new-line" function (combined carriage
return and linefeed), terminate each line you type with
the "new line" key (n
_o_t
_ the "return" key).
3_
_ 0_
0_-_
b_a_
u_d _
t_e_
r_m_
i_n_
a_l_
s
- vii -
S_
_ e_
l_e_
c_t_
r_i_
c _
t_e_
r_m_
i_n_
a_l_
s
L_
_ o_
g_g_
i_n_
g _
o_u_
t
H_
_ o_
w _
t_o _
c_o_
m_m_
u_n_
i_c_
a_t_
e _
t_h_
r_o_
u_g_
h _
y_o_
u_r _
t_e_
r_m_
i_n_
a_l
- viii -
characters will not be given to a program until you type a
return, as described above in _
L_o_
g_g_
i_n_
g _
i_n_
.
The q
_u_i
_t_ signal is generated by typing the ASCII FS charac-
ter. It not only causes a running program to terminate but
also generates a file with the core image of the terminated
process. Quit is useful for debugging.
- ix -
Tab characters are used freely in UNIX source programs. If
your terminal does not have the tab function, you can
arrange to have them turned into spaces during output, and
echoed as spaces during input. The system assumes that tabs
are set every eight columns. Again, the stty command (I)
will set or reset this mode. Also, there is a file which,
if printed on TTY 37 or TermiNet 300 terminals, will set the
tab stops correctly (tabs(VII)).
H_
_ o_
w _
t_o _
r_u_
n _
a _
p_r_
o_g_
r_a_
m_; _
T_h_
e _
S_h_
e_l_
l
T_
_ h_
e _
c_u_
r_r_
e_n_
t _
d_i_
r_e_
c_t_
o_r_
y
- x -
P_
_ a_
t_h _
n_a_
m_e_
s
Full path names begin with "/", the name of the root direc-
tory of the whole file system. After the slash comes the
name of each directory containing the next sub-directory
(followed by a "/") until finally the file name is reached.
E.g.: "/usr/lem/filex" refers to file "filex" in directory
"lem"; "lem" is itself a sub-directory of "usr"; "usr"
springs directly from the root directory.
W_
_ r_
i_t_
i_n_
g _
a _
p_r_
o_g_
r_a_
m
When you have finally gone through this entire process with-
out provoking any diagnostics, the resulting program can be
run by giving its name to the Shell in response to the "%"
prompt.
- xi -
is better than average for assembly-language programs,
marginally useful for C programs (when completed, cdb(I)
will be a boon), and virtually useless for Fortran.
T_
_ e_
x_t _
p_r_
o_c_
e_s_
s_i_
n_g
S_
_ u_
r_p_
r_i_
s_e_
s
- xii -
TABLE OF CONTENTS
I. COMMANDS
- xiii -
pr ........................... print file with headings
proof ........................ compare text files
reloc ........................ relocate object files
rew .......................... rewind DECtape
rm ........................... remove (delete) file
rmdir ........................ remove (delete) directory
roff ......................... format text for printing
sh ........................... command interpreter
size ......................... get executable program size
sno .......................... compile Snobol program
sort ......................... sort ASCII file
speak ........................ send words to voice synthesizer
split ........................ break a file into pieces
stat ......................... get file status
strip ........................ remove symbols, relocation bits
stty ......................... set typewriter modes
sum .......................... sum file
tap .......................... save, restore files on DECtape
time ......................... get time information
tmg .......................... compile tmgl program
tss .......................... communicate with MH-TSS (GCOS)
tty .......................... find name of terminal
type ......................... print file page-by-page
typo ......................... find typographic errors
un ........................... find undefined symbols
uniq ......................... find duplicate lines in a file
vs ........................... generate voice synthesizer phonemes
wc ........................... get (English) word count
who .......................... who is on the system
write ........................ write to another user
- xiv -
kill ......................... destroy process
link ......................... link to file
makdir ....................... create directory
mdate ........................ set date modified of file
mount ........................ mount file system
nice ......................... set low-priority status
open ......................... open file
pipe ......................... open inter process channel
quit ......................... inhibit quits
read ......................... read file
rele ......................... release processor
seek ......................... move read or write pointer
setuid ....................... set user ID
sleep ........................ delay execution
stat ......................... get file status
stime ........................ set system time
stty ......................... set mode of typewriter
sync ......................... assure synchronization
time ......................... get time of year
times ........................ get execution times
umount ....................... dismount file system
unlink ....................... remove (delete) file
wait ......................... wait for process
write ........................ write file
III. SUBROUTINES
- xv -
sqrt ......................... square root
switch ....................... transfer depending on value
ttyn ......................... find teletype name
V. FILE FORMATS
VII. MISCELLANEOUS
- xvi -
VIII. SYSTEM MAINTAINANCE
- xvii -
INDEX
- xviii -
remove symbols, relocation bits...strip(I):
bj(VI): blackjack
bj(VI): blackjack
bproc(VIII): boot procedure
boot(II): reboot the system
bproc(VIII): boot procedure
split(I): break a file into pieces
break(II): set program break
break(II): set program break
istat(VIII): file status by i-number
cdb(I): C debugger
cc(I): compile C program
dc(I): desk calculator
cemt(II): catch EMT traps
fpe(II): catch floating exception errors
ilgins(II): catch illegal instruction trap
intr(II): catch or inhibit interrupts
cat(I): concatenate (or print) files
cc(I): compile C program
cdb(I): C debugger
cemt(II): catch EMT traps
chmod(I): change access mode of files
chmod(II): change mode of file
chown(I): change owner of files
chown(II): change owner of file
chdir(I): change working directory
chdir(II): change working directory
pipe(II): open inter process channel
ddsput(III): display character on Picturephone
putc(III): write character or word
getc(III): get character
chdir(I): change working directory
chdir(II): change working directory
chk(VIII): check all file systems
check(VIII): check consistency of file system
system... check(VIII): check consistency of file
chk(VIII): check all file systems
chmod(I): change access mode of files
chmod(II): change mode of file
chown(I): change owner of files
chown(II): change owner of file
clri(VIII): clear file’s i-node
close(II): close open file
close(II): close open file
clri(VIII): clear file’s i-node
cmp(I): compare file contents
ar(I): archive (combine) files
echo(I): print command arguments
sh(I): command interpreter
exit(I): end command sequence
goto(I): command transfer
if(I): conditional command
gerts(III): communicate with GCOS
- xix -
tss(I): communicate with MH-TSS (GCOS)
cmp(I): compare file contents
compar(III): string compare for sort
proof(I): compare text files
compar(III): string compare for sort
bc(VI): compile B program
cc(I): compile C program
fc(I): compile Fortran program
sno(I): compile Snobol program
tmg(I): compile tmgl program
yacc(VI): yet another compiler-compiler
hypot(III): compute hypotenuse
cat(I): concatenate (or print) files
if(I): conditional command
acct(VIII): get connect-time accounting
check(VIII): check consistency of file system
csw(II): read the console switches
kl(IV): console typewriter
ls(I): list contents of directory
cmp(I): compare file contents
ecvt(III): edited output conversion
atof(III): convert ASCII to floating
atoi(III): convert ASCII to integer
ftoa(III): convert floating to ASCII
ftoo(III): convert floating to octal
itoa(III): convert integer to ASCII
ctime(III): convert time to ASCII
cp(I): copy file
core(V): core image file
mem(IV): core memory
core(V): core image file
sin(III): sine, cosine
wc(I): get (English) word count
cp(I): copy file
makdir(II): create directory
mkdir(I): create directory
creat(II): create file
fork(II): create new process
creat(II): create file
cref(I): cross reference table
cref(I): cross reference table
crypt(I): encrypt, decrypt a file
crypt(III): encrypt according to a keyword
csw(II): read the console switches
ctime(III): convert time to ASCII
dpd(VII): spawn dataphone daemon
salv(VIII): repair damaged file system
dpd(VII): spawn dataphone daemon
dp(IV): 201 Dataphone
date(I): get date and time of day
mdate(II): set date modified of file
date(I): get date and time of day
date(I): get date and time of day
- xx -
db(I): symbolic debugger
dcheck(VIII): verify directory hierarchy
dc(I): desk calculator
dc(IV): remote typewriter
Picturephone... ddsput(III): display character on
cdb(I): C debugger
db(I): symbolic debugger
dli(VIII): load DEC binary paper tapes
crypt(I): encrypt, decrypt a file
tap(V): DECtape and magtape format
rew(I): rewind DECtape
save, restore files on DECtape...tap(I):
tc(IV): DECtape
sleep(II): delay execution
dsw(I): delete files interactively
rmdir(I): remove (delete) directory
rm(I): remove (delete) file
unlink(II): remove (delete) file
mesg(I): permit or deny messages
switch(III): transfer depending on value
dc(I): desk calculator
kill(II): destroy process
df(I): find free disk space
bas(I): BASIC dialect
directory(V): directory format
dcheck(VIII): verify directory hierarchy
directory(V): directory format
chdir(I): change working directory
chdir(II): change working directory
ls(I): list contents of directory
makdir(II): create directory
mkdir(I): create directory
rmdir(I): remove (delete) directory
df(I): find free disk space
du(I): find disk usage
rf(IV): RF disk
rk(IV): RK disk
umount(II): dismount file system
ddsput(III): display character on Picturephone
vt(IV): storage-tube display
dli(VIII): load DEC binary paper tapes
dn(IV): 801 ACU
dpd(VII): spawn dataphone daemon
dp(IV): 201 Dataphone
dsw(I): delete files interactively
du(I): find disk usage
od(I): octal dump of file
dup(II): duplicate an open file
dup(II): duplicate an open file
uniq(I): find duplicate lines in a file
echo(I): print command arguments
ecvt(III): edited output conversion
ed(I): text editor
- xxi -
ecvt(III): edited output conversion
ld(I): link editor (loader)
ed(I): text editor
fed(I): form letter editor
cemt(II): catch EMT traps
crypt(III): encrypt according to a keyword
crypt(I): encrypt, decrypt a file
exit(I): end command sequence
wc(I): get (English) word count
catch floating exception errors...fpe(II):
typo(I): find typographic errors
fpe(II): catch floating exception errors
exec(II): execute program file
size(I): get executable program size
exec(II): execute program file
times(II): get execution times
exit(II): terminate execution
sleep(II): delay execution
exit(I): end command sequence
exit(II): terminate execution
glob(VII): argument expander
exp(III): exponential function
exp(III): exponential function
greek(VII): extended TTY 37 typebox map
log(III): logarithm base e
factor(I): factor a number
factor(I): factor a number
fc(I): compile Fortran program
fed(I): form letter editor
cmp(I): compare file contents
split(I): break a file into pieces
opr(I): print file off-line
type(I): print file page-by-page
ov(I): page overlay file print
istat(VIII): file status by i-number
stat(I): get file status
stat(II): get file status
file system(V): file system format
chk(VIII): check all file systems
file system(V): file system format
check consistency of file system...check(VIII):
mount(II): mount file system
mount(VIII): mount removable file system
salv(VIII): repair damaged file system
umount(II): dismount file system
pr(I): print file with headings
clri(VIII): clear file’s i-node
dsw(I): delete files interactively
tap(I): save, restore files on DECtape
mt(I): save, restore files on magtape
ar(I): archive (combine) files
concatenate (or print) files...cat(I):
change access mode of files...chmod(I):
- xxii -
chown(I): change owner of files
proof(I): compare text files
reloc(I): relocate object files
wtmp(V): accounting files
archive(V): archive file
chmod(II): change mode of file
chown(II): change owner of file
close(II): close open file
core(V): core image file
cp(I): copy file
creat(II): create file
crypt(I): encrypt, decrypt a file
dup(II): duplicate an open file
exec(II): execute program file
fstat(II): status of open file
link(II): link to file
ln(I): link to file
set date modified of file...mdate(II):
mv(I): move or rename file
od(I): octal dump of file
open(II): open file
passwd(V): password file
read(II): read file
rm(I): remove (delete) file
sort(I): sort ASCII file
sum(I): sum file
find duplicate lines in a file...uniq(I):
unlink(II): remove (delete) file
write(II): write file
du(I): find disk usage
uniq(I): find duplicate lines in a file
df(I): find free disk space
hyphen(I): find hyphenated words
tty(I): find name of terminal
ttyn(III): find teletype name
typo(I): find typographic errors
un(I): find undefined symbols
fpe(II): catch floating exception errors
ftoa(III): convert floating to ASCII
ftoo(III): convert floating to octal
atof(III): convert ASCII to floating
fork(II): create new process
fed(I): form letter editor
forml(I): generate form letters
form(I): generate form letter
nroff(I): format text for printing
roff(I): format text for printing
directory(V): directory format
file system(V): file system format
tap(V): DECtape and magtape format
form(I): generate form letter
forml(I): generate form letters
fc(I): compile Fortran program
- xxiii -
fpe(II): catch floating exception errors
df(I): find free disk space
fstat(II): status of open file
ftoa(III): convert floating to ASCII
ftoo(III): convert floating to octal
exp(III): exponential function
communicate with MH-TSS (GCOS)...tss(I):
gerts(III): communicate with GCOS
forml(I): generate form letters
form(I): generate form letter
vs(I): generate voice synthesizer phonemes
pseudo random number generator...rand(III):
gerts(III): communicate with GCOS
getc(III): get character
acct(VIII): get connect-time accounting
date(I): get date and time of day
wc(I): get (English) word count
size(I): get executable program size
times(II): get execution times
stat(I): get file status
stat(II): get file status
ps(VIII): get process status
time(I): get time information
time(II): get time of year
gtty(II): get typewriter mode
getuid(II): get user ID
getc(III): get character
getty(VII): adapt to typewriter
getuid(II): get user ID
glob(VII): argument expander
goto(I): command transfer
greek(VII): extended TTY 37 typebox map
gtty(II): get typewriter mode
pr(I): print file with headings
verify directory hierarchy...dcheck(VIII):
hyphen(I): find hyphenated words
hyphen(I): find hyphenated words
hypot(III): compute hypotenuse
hypot(III): compute hypotenuse
clri(VIII): clear file’s i-node
istat(VIII): file status by i-number
getuid(II): get user ID
setuid(II): set user ID
if(I): conditional command
ilgins(II): catch illegal instruction trap
ilgins(II): catch illegal instruction trap
core(V): core image file
uniq(I): find duplicate lines in a file
ptx(VI): permuted index
time(I): get time information
utmp(V): logged-in user information
intr(II): catch or inhibit interrupts
quit(II): inhibit quits
- xxiv -
init(VII): initializer process
init(VII): initializer process
ilgins(II): catch illegal instruction trap
itoa(III): convert integer to ASCII
atoi(III): convert ASCII to integer
pipe(II): open inter process channel
dsw(I): delete files interactively
sh(I): command interpreter
intr(II): catch or inhibit interrupts
split(I): break a file into pieces
intr(II): catch or inhibit interrupts
istat(VIII): file status by i-number
itoa(III): convert integer to ASCII
encrypt according to a keyword...crypt(III):
kill(II): destroy process
kill(VIII): terminate a process
kl(IV): console typewriter
:(I): place label
ld(I): link editor (loader)
fed(I): form letter editor
forml(I): generate form letters
form(I): generate form letter
uniq(I): find duplicate lines in a file
ld(I): link editor (loader)
link(II): link to file
ln(I): link to file
link(II): link to file
ls(I): list contents of directory
nlist(III): read name list
ln(I): link to file
dli(VIII): load DEC binary paper tapes
[Link](V): assembler and loader output
ld(I): link editor (loader)
login(I): log on to system
log(III): logarithm base e
utmp(V): logged-in user information
log(III): logarithm base e
passwd(I): set login password
login(I): log on to system
nice(II): set low-priority status
ls(I): list contents of directory
m6(I): macroprocessor
m6(I): macroprocessor
tap(V): DECtape and magtape format
mt(I): save, restore files on magtape
tm 9-track magtape
mail(I): send mail to another user
mail(I): send mail to another user
makdir(II): create directory
man(I): run off manual section
man(I): run off manual section
ascii(VII): map of ASCII
extended TTY 37 typebox map...greek(VII):
- xxv -
mdate(II): set date modified of file
mem(IV): core memory
mem(IV): core memory
mesg(I): permit or deny messages
mesg(III): print string on typewriter
mesg(I): permit or deny messages
tss(I): communicate with MH-TSS (GCOS)
msh(VII): mini Shell
mkdir(I): create directory
chmod(I): change access mode of files
chmod(II): change mode of file
stty(II): set mode of typewriter
stty(I): set typewriter modes
gtty(II): get typewriter mode
mdate(II): set date modified of file
mount(II): mount file system
mount(VIII): mount removable file system
mount(II): mount file system
mount(VIII): mount removable file system
mv(I): move or rename file
seek(II): move read or write pointer
msh(VII): mini Shell
mt(I): save, restore files on magtape
mv(I): move or rename file
nlist(III): read name list
tty(I): find name of terminal
nm(I): print namelist
ttyn(III): find teletype name
fork(II): create new process
nice(II): set low-priority status
nlist(III): read name list
nm(I): print namelist
nroff(I): format text for printing
rand(III): pseudo random number generator
pow(III): take powers of numbers
factor(I): factor a number
reloc(I): relocate object files
od(I): octal dump of file
convert floating to octal...ftoo(III):
od(I): octal dump of file
man(I): run off manual section
opr(I): print file off-line
close(II): close open file
dup(II): duplicate an open file
fstat(II): status of open file
open(II): open file
pipe(II): open inter process channel
open(II): open file
opr(I): print file off-line
cat(I): concatenate (or print) files
ecvt(III): edited output conversion
assembler and loader output...[Link](V):
ov(I): page overlay file print
- xxvi -
ov(I): page overlay file print
chown(I): change owner of files
chown(II): change owner of file
ov(I): page overlay file print
type(I): print file page-by-page
dli(VIII): load DEC binary paper tapes
pc(IV): punched paper tape
passwd(I): set login password
passwd(V): password file
passwd(V): password file
passwd(I): set login password
pc(IV): punched paper tape
mesg(I): permit or deny messages
ptx(VI): permuted index
generate voice synthesizer phonemes...vs(I):
vsp(VII): voice synthesizer phonemes
display character on Picturephone...ddsput(III):
split(I): break a file into pieces
pipe(II): open inter process channel
:(I): place label
seek(II): move read or write pointer
pow(III): take powers of numbers
pow(III): take powers of numbers
pr(I): print file with headings
echo(I): print command arguments
opr(I): print file off-line
type(I): print file page-by-page
pr(I): print file with headings
nm(I): print namelist
mesg(III): print string on typewriter
ptime(III): print time
cat(I): concatenate (or print) files
nroff(I): format text for printing
roff(I): format text for printing
ov(I): page overlay file print
bproc(VIII): boot procedure
pipe(II): open inter process channel
ps(VIII): get process status
rele(II): release processor
fork(II): create new process
init(VII): initializer process
kill(II): destroy process
kill(VIII): terminate a process
wait(II): wait for process
break(II): set program break
exec(II): execute program file
size(I): get executable program size
bc(VI): compile B program
cc(I): compile C program
fc(I): compile Fortran program
sno(I): compile Snobol program
tmg(I): compile tmgl program
proof(I): compare text files
- xxvii -
rand(III): pseudo random number generator
ps(VIII): get process status
ptime(III): print time
ptx(VI): permuted index
pc(IV): punched paper tape
putc(III): write character or word
qsort(III): quicker sort
qsort(III): quicker sort
quit(II): inhibit quits
quit(II): inhibit quits
rand(III): pseudo random number generator
rand(III): pseudo random number generator
read(II): read file
nlist(III): read name list
seek(II): move read or write pointer
csw(II): read the console switches
read(II): read file
20boot(VIII): reboot 11/20 system
boot(II): reboot the system
cref(I): cross reference table
rele(II): release processor
rele(II): release processor
reloc(I): relocate object files
strip(I): remove symbols, relocation bits
reloc(I): relocate object files
dc(IV): remote typewriter
mount(VIII): mount removable file system
rmdir(I): remove (delete) directory
rm(I): remove (delete) file
unlink(II): remove (delete) file
strip(I): remove symbols, relocation bits
mv(I): move or rename file
salv(VIII): repair damaged file system
tap(I): save, restore files on DECtape
mt(I): save, restore files on magtape
rew(I): rewind DECtape
rew(I): rewind DECtape
rf(IV): RF disk
rf(IV): RF disk
rk(IV): RK disk
rk(IV): RK disk
rmdir(I): remove (delete) directory
rm(I): remove (delete) file
roff(I): format text for printing
sqrt(III): square root
man(I): run off manual section
salloc(III): storage allocator
salv(VIII): repair damaged file system
tap(I): save, restore files on DECtape
mt(I): save, restore files on magtape
man(I): run off manual section
seek(II): move read or write pointer
mail(I): send mail to another user
- xxviii -
speak(I): send words to voice synthesizer
exit(I): end command sequence
mdate(II): set date modified of file
passwd(I): set login password
nice(II): set low-priority status
stty(II): set mode of typewriter
break(II): set program break
stime(II): set system time
tabs(VII): set tab stops on typewriter
stty(I): set typewriter modes
setuid(II): set user ID
setuid(II): set user ID
msh(VII): mini Shell
sh(I): command interpreter
sin(III): sine, cosine
sin(III): sine, cosine
size(I): get executable program size
get executable program size...size(I):
sleep(II): delay execution
sno(I): compile Snobol program
sno(I): compile Snobol program
sort(I): sort ASCII file
sort(I): sort ASCII file
string compare for sort...compar(III):
qsort(III): quicker sort
df(I): find free disk space
dpd(VII): spawn dataphone daemon
speak(I): send words to voice synthesizer
split(I): break a file into pieces
sqrt(III): square root
sqrt(III): square root
stat(I): get file status
stat(II): get file status
istat(VIII): file status by i-number
fstat(II): status of open file
nice(II): set low-priority status
ps(VIII): get process status
stat(I): get file status
stat(II): get file status
stime(II): set system time
tabs(VII): set tab stops on typewriter
salloc(III): storage allocator
vt(IV): storage-tube display
compar(III): string compare for sort
mesg(III): print string on typewriter
strip(I): remove symbols, relocation bits
stty(I): set typewriter modes
stty(II): set mode of typewriter
sum(I): sum file
sum(I): sum file
csw(II): read the console switches
switch(III): transfer depending on value
db(I): symbolic debugger
- xxix -
strip(I): remove symbols, relocation bits
un(I): find undefined symbols
sync(II): assure synchronization
sync(II): assure synchronization
vs(I): generate voice synthesizer phonemes
vsp(VII): voice synthesizer phonemes
speak(I): send words to voice synthesizer
file system(V): file system format
stime(II): set system time
chk(VIII): check all file systems
file system(V): file system format
20boot(VIII): reboot 11/20 system
boot(II): reboot the system
check consistency of file system...check(VIII):
login(I): log on to system
mount(II): mount file system
mount removable file system...mount(VIII):
repair damaged file system...salv(VIII):
umount(II): dismount file system
who(I): who is on the system
tabs(VII): set tab stops on typewriter
cref(I): cross reference table
tabs(VII): set tab stops on typewriter
pow(III): take powers of numbers
load DEC binary paper tapes...dli(VIII):
pc(IV): punched paper tape
tap(I): save, restore files on DECtape
tap(V): DECtape and magtape format
tc(IV): DECtape
ttyn(III): find teletype name
tty(I): find name of terminal
kill(VIII): terminate a process
exit(II): terminate execution
ed(I): text editor
proof(I): compare text files
nroff(I): format text for printing
roff(I): format text for printing
time(I): get time information
date(I): get date and time of day
time(II): get time of year
ctime(III): convert time to ASCII
time(I): get time information
time(II): get time of year
times(II): get execution times
times(II): get execution times
ptime(III): print time
stime(II): set system time
tm 9-track magtape
tmg(I): compile tmgl program
tmg(I): compile tmgl program
switch(III): transfer depending on value
goto(I): command transfer
cemt(II): catch EMT traps
- xxx -
catch illegal instruction trap...ilgins(II):
tss(I): communicate with MH-TSS (GCOS)
greek(VII): extended TTY 37 typebox map
tty(I): find name of terminal
ttyn(III): find teletype name
greek(VII): extended TTY 37 typebox map
type(I): print file page-by-page
stty(I): set typewriter modes
gtty(II): get typewriter mode
dc(IV): remote typewriter
getty(VII): adapt to typewriter
kl(IV): console typewriter
mesg(III): print string on typewriter
stty(II): set mode of typewriter
tabs(VII): set tab stops on typewriter
typo(I): find typographic errors
typo(I): find typographic errors
umount(II): dismount file system
un(I): find undefined symbols
un(I): find undefined symbols
uniq(I): find duplicate lines in a file
unlink(II): remove (delete) file
du(I): find disk usage
getuid(II): get user ID
setuid(II): set user ID
utmp(V): logged-in user information
mail(I): send mail to another user
write(I): write to another user
utmp(V): logged-in user information
transfer depending on value...switch(III):
dcheck(VIII): verify directory hierarchy
vs(I): generate voice synthesizer phonemes
vsp(VII): voice synthesizer phonemes
speak(I): send words to voice synthesizer
vs(I): generate voice synthesizer phonemes
vsp(VII): voice synthesizer phonemes
vt(IV): storage-tube display
wait(II): wait for process
wait(II): wait for process
wc(I): get (English) word count
who(I): who is on the system
who(I): who is on the system
gerts(III): communicate with GCOS
pr(I): print file with headings
tss(I): communicate with MH-TSS (GCOS)
wc(I): get (English) word count
speak(I): send words to voice synthesizer
hyphen(I): find hyphenated words
putc(III): write character or word
chdir(I): change working directory
chdir(II): change working directory
putc(III): write character or word
write(II): write file
- xxxi -
seek(II): move read or write pointer
write(I): write to another user
write(I): write to another user
write(II): write file
wtmp(V): accounting files
yacc(VI): yet another compiler-compiler
time(II): get time of year
yacc(VI): yet another compiler-compiler
- xxxii -
: (I) 3/15/72 : (I)
SYNOPSIS _ [ label ]
:
FILES --
DIAGNOSTICS --
BUGS --
- 1 -
AR (I) 3/15/72 AR (I)
NAME ar -- archive
SYNOPSIS _r
a _ key afile name918 ...
DESCRIPTION ar
_ _ maintains groups of files combined into a sin-
gle archive file. Its main use is to create and
update library files as used by the loader. It
can be used, though, for any similar purpose.
ke
_ _y
_ is one character from the set d _r_t
_u_x
_, option-
ally concatenated with v _. a_f
_i_l
_e_ is the archive
file. The n _a
_m_e
_s_ are constituent files in the ar-
chive file. The meanings of the k _e
_y_ characters
are:
u is similar to r
_ _ except that only those files
that have been modified are replaced. If no
names are given, all files in the archive that
have been modified will be replaced by the modi-
fied version.
c
_ copy
_
a append
_
d delete
_
r replace
_
x extract
- 1 -
AR (I) 3/15/72 AR (I)
BUGS Option v
_t_ should be implemented as a table with
more information.
- 2 -
AS (I) 1/15/73 AS (I)
NAME as -- assembler
SYNOPSIS _s
a _ [ -
_ ] name918 ...
DESCRIPTION as
_ _ assembles the concatenation of name1, .... If
the optional first argument -_ is used, all unde-
fined symbols in the assembly are treated as
global.
) parentheses error
] parentheses error
< String not terminated properly
* Indirection ("*
_") used illegally
A error in A
_ddress
B _ranch instruction is odd or too remote
B
E error in E
_xpression
F error in local ("F_" or "b") type symbol
G _arbage (unknown) character
G
I End of file inside an I_f
_
M _ultiply defined symbol as label
M
O _dd-- word quantity assembled at odd address
O
P _hase error-- "." different in pass 1 and 2
P
R _elocation error
R
U _ndefined symbol
U
X syntaX
_ error
- 1 -
BAS (I) 1/15/73 BAS (I)
SYNOPSIS _a
b _s
_ [ file ]
DESCRIPTION ba
_ _s
_ is a dialect of basic [1]. If a file argu-
ment is provided, the file is used for input be-
fore the console is read.
_a
b _s
_ accepts lines of the form:
statement
integer statement
expression
The expression is executed for its side ef-
fects (assignment or function call) or for
printing as described above.
_o
d _n
_e_
Return to system level.
_r
d _a
_w_ expression expression expression
A line is drawn on the Tektronix 611 dis-
play (/dev/vt0) from the current display
position to the XY co-ordinates specified
by the first two expressions. (The scale
is zero to one in both X and Y directions)
If the third expression is zero, the line
is invisible. The current display position
is set to the end point.
_i
d _s
_p_l
_a_y
_ list
The list of expressions and strings is con-
catenated and displayed (i.e. printed) on
the 611 starting at the current display po-
sition. The current display position is
not changed.
_r
e _a
_s_e
_
The 611 screen is erased.
fo
_ _r
_ name _
= expression expression statement
_o
f _r
_ name =
_ expression expression
_e
n _x
_t_
- 1 -
BAS (I) 1/15/73 BAS (I)
The f
_o_r
_ statement repetitively executes a
statement (first form) or a group of state-
ments (second form) under control of a
named variable. The variable takes on the
value of the first expression, then is in-
cremented by one on each loop, not to ex-
ceed the value of the second expression.
_o
g _t
_o_ expression
The expression is evaluated, truncated to
an integer and execution goes to the corre-
sponding integer numbered statment. If ex-
ecuted from immediate mode, the internal
statements are compiled first.
_f
i _ expression statement
The statement is executed if the expression
evaluates to non-zero.
_i
l _s
_t_ [expression [expression]]
_i
l _s
_t_ is used to print out the stored inter-
nal statements. If no arguments are given,
all internal statements are printed. If
one argument is given, only that internal
statement is listed. If two arguments are
given, all internal statements inclusively
between the arguments are printed.
_r
p _i
_n_t
_ list
The list of expressions and strings are
concatenated and printed. (A string is de-
limited by " characters.)
_e
r _t
_u_r
_n_ [expression]
The expression is evaluated and the result
is passed back as the value of a function
call. If no expression is given, zero is
returned.
_u
r _n
_
The internal statements are compiled. The
symbol table is re-initialized. The random
number generator is re-set. Control is
passed to the lowest numbered internal
statement.
name
A name is used to specify a variable.
Names are composed of a letter (’a’ - ’z’)
followed by letters and digits. The first
four characters of a name are significant.
- 2 -
BAS (I) 1/15/73 BAS (I)
number
A number is used to represent a constant
value. A number is composed of digits, at
most one decimal point (’.’) and possibly
a scale factor of the form e
_ digits or e
_-_
digits.
_ expression )
( _
Parentheses are used to alter normal order
of evaluation.
expression (
_ [expression [,
_ expression ...]] )
_
Functions of an arbitrary number of argu-
ments can be called by an expression fol-
lowed by the arguments in parentheses sepa-
rated by commas. The expression evaluates
to the line number of the entry of the
function in the internally stored state-
ments. This causes the internal statements
to be compiled. If the expression evalu-
ates negative, a builtin function is
called. The list of builtin functions ap-
pears below.
name [
_ expression [,
_ expression ...] ]
_
Each expression is truncated to an integer
and used as a specifier for the name. The
result is syntactically identical to a
name. a[1,2] is the same as a[1][2]. The
truncated expressions are restricted to
values between 0 and 32767.
=
= is the assignment operator. The left op-
erand must be a name or an array element.
The result is the right operand. Assign-
ment binds right to left, all other opera-
tors bind left to right.
& |
& (logical and) has result zero if either
_
of its arguments are zero. It has result
one if both its arguments are non-zero. | _
(logical or) has result zero if both of its
arguments are zero. It has result one if
either of its arguments are non-zero.
- 3 -
BAS (I) 1/15/73 BAS (I)
+ -
Add and subtract.
* /
Multiply and divide.
^
Exponentiation.
arg
Arg(i) is the value of the i
_th actual pa-
rameter on the current level of function
call.
exp
Exp(x) is the exponential function of x.
log
Log(x) is the logarithm base e of x.
sin
Sin(x) is the sine of x (radians).
cos
Cos(x) is the cosine of x (radians).
atn
Atn(x) is the arctangent of x.
rnd
Rnd() is a uniformly distributed random
number between zero and one.
expr
Expr() is the only form of program input.
A line is read from the input and evaluated
as an expression. The resultant value is
returned.
int
Int(x) returns x truncated to an integer.
- 4 -
BAS (I) 1/15/73 BAS (I)
BUGS --
- 5 -
CAT (I) 1/15/73 CAT (I)
SYNOPSIS _a
c _t
_ file918 ...
DESCRIPTION ca
_ _t
_ reads each file in sequence and writes it on
the standard output. Thus:
_a
c _t
_ f
_i_l
_e_
_a
c _t
_ f
_i_l
_e_1
_ f
_i_l
_e_2
_ >
_f_i
_l_e
_3_
FILES --
- 1 -
CC (I) 3/15/72 CC (I)
NAME cc -- C compiler
SYNOPSIS _c
c _ [ -
_c_ ] sfile1.
_c_ ... ofile1 ...
DESCRIPTION cc
_ _ is the UNIX C compiler. It accepts three
types of arguments:
BUGS --
- 1 -
CDB (I) 1/15/73 CDB (I)
SYNOPSIS _d
c _b
_ [ core [ [Link] ] ]
DESCRIPTION cd
_ _b
_ is a debugging program for use with C pro-
grams. It is by no means completed, and this
section is essentially only a placeholder for the
actual description.
Cdb resembles d
_b_ in many respects, except that
all integers are decimal.
FILES --
DIAGNOSTICS "?"
BUGS --
- 1 -
CHDIR (I) 3/15/72 CHDIR (I)
SYNOPSIS _h
c _d
_i_r
_ directory
DESCRIPTION _i
d _r
_e_c
_t_o
_r_y
_ becomes the new working directory.
FILES --
BUGS --
- 1 -
CHMOD (I) 3/15/72 CHMOD (I)
SYNOPSIS _h
c _m
_o_d
_ octal file918 ...
FILES --
DIAGNOSTICS "?"
BUGS --
- 1 -
CHOWN (I) 3/15/72 CHOWN (I)
SYNOPSIS _h
c _o
_w_n
_ owner file918 ...
DESCRIPTION ow
_ _n
_e_r
_ becomes the new owner of the files. The
owner may be either a decimal UID or a login name
found in the password file.
FILES /etc/passwd
BUGS --
- 1 -
CMP (I) 1/15/73 CMP (I)
SYNOPSIS _m
c _p
_ file918 file928
FILES --
- 1 -
CP (I) 1/24/73 CP (I)
NAME cp -- copy
SYNOPSIS _p
c _ file918 file928
FILES --
- 1 -
CREF (I) 2/5/1973 CREF (I)
SYNOPSIS _r
c _e
_f_ [ -
_s_o
_i_ ] name1 ...
FILES Files t.0, t.1, t.2, t.3 are created (i.e. DE-
STROYED) in the working directory of anyone using
_r
c _e
_f_. This nuisance will be repaired soon. The
output is left in file s _.
_o_u
_t_ in the working di-
rectory.
- 1 -
CREF (I) 2/5/1973 CREF (I)
- 2 -
CRYPT (I) 10/23/71 CRYPT (I)
SYNOPSIS _r
c _y
_p_t
_ [ password ]
DESCRIPTION cr
_ _y
_p_t
_ is an exact implementation of Boris
Hagelin’s cryptographic machine called the M-209
by the U. S. Army [1].
cr
_ _y
_p_t
_ reads from the standard input file and
writes on the standard output. For a given pass-
word, the encryption process is idempotent; that
is,
_r
c _y
_p_t
_ is suitable for use as a filter:
pr <"crypt bandersnatch"<cypher
FILES --
DIAGNOSTICS --
BUGS --
- 1 -
DATE (I) 3/15/72 DATE (I)
SYNOPSIS _a
d _t
_e_ [ mmddhhmm ]
date 10080045
FILES --
SEE ALSO --
BUGS --
- 1 -
DB (I) 3/15/72 DB (I)
NAME db -- debug
SYNOPSIS _b
d _ [ core [ namelist ] ] [ -
_ ]
- 1 -
DB (I) 3/15/72 DB (I)
r0 ... r5
sp
pc
fr0 ... fr5
There are d
_b_ commands for examining locations in-
terpreted as octal numbers, machine instructions,
ASCII characters, and addresses. For numbers and
characters, either bytes or words may be exam-
ined. The following commands are used to examine
the specified file.
- 2 -
DB (I) 3/15/72 DB (I)
% Exit.
- 3 -
DB (I) 3/15/72 DB (I)
Db
_ _ should not be used to examine special files,
for example disks and tapes, since it reads one
byte at a time. Use od(I) instead.
- 4 -
DB (I) 3/15/72 DB (I)
FILES --
BUGS --
- 5 -
DC (I) 1/15/73 DC (I)
SYNOPSIS _c
d _ [file]
DESCRIPTION dc
_ _ is an arbitrary precision integer arithmetic
package. The overall structure of dc is a stack-
ing (reverse Polish) calculator. The following
constructions are recognized by the calculator:
number
The value of the number is pushed on the
stack. A number is an unbroken string of the
digits 0-9. It may be preceded by an under-
score (_) to input a negative number.
_ -
+ _ _* /
_ %
_ ^
_
The top two values on the stack are added (+_),
subtracted (-
_), multiplied (*_), divided (/
_),
remaindered (%_) or exponentiated (^). The two
entries are popped off the stack; the result
is pushed on the stack in their place.
_x
s
The top of the stack is popped and stored into
a register named x, where x may be any charac-
ter.
_x
l
The value in register x is pushed on the
stack. The register x is not altered. All
registers start with zero value.
_
d
The top value on the stack is pushed on the
stack. Thus the top value is duplicated.
_
p
The top value on the stack is printed. The
top value remains unchanged.
_
f
All values on the stack and in registers are
printed.
q
_
exits the program. If executing a string, the
nesting level is popped by two.
x
_
treats the top element of the stack as a char-
acter string and executes it as a string of dc
commands.
_.
[ _.
_._]
_
- 1 -
DC (I) 1/15/73 DC (I)
_x _
< =x >
_x
The top two elements of the stack are popped
and compared. Register x is executed if they
obey the stated relation.
v
_
replaces the top element on the stack by its
square root.
_
!
interprets the rest of the line as a UNIX com-
mand.
_
c
All values on the stack are popped.
_
i
The top value on the stack is popped and used
as the number radix for further input.
_
o
the top value on the stack is popped and used
as the number radix for further output.
_
z
the stack level is pushed onto the stack.
_
?
a line of input is taken from the input source
(usually the console) and executed.
new-line
ignored except as the name of a register or to
end the response to a ?
_.
space
ignored except as the name of a register or to
terminate a number.
10000
100* (now in cents)
dsa (non-destructive store)
12/ (pennies per month)
la52/ (pennies per week)
- 2 -
DC (I) 1/15/73 DC (I)
FILES --
BUGS --
- 3 -
DF (I) 1/20/73 DF (I)
SYNOPSIS _f
d _ [ filesystem ]
DESCRIPTION df
_ _ prints out the number of free blocks available
on a file system. If the file system is unspeci-
fied, the free space on all of the normally
mounted file systems is printed.
DIAGNOSTICS --
BUGS --
- 1 -
DSW (I) 3/15/72 DSW (I)
SYNOPSIS _s
d _w
_ [ directory ]
FILES --
DIAGNOSTICS "?"
- 1 -
DU (I) 1/20/73 DU (I)
SYNOPSIS _u
d _ [ -
_s_ ] [ -
_a_ ] [ name ... ]
DESCRIPTION du
_ _ gives the number of blocks contained in all
files and (recursively) directories within each
specified directory or file n_a
_m_e
_. If n
_a_m
_e_ is
missing, ._ is used.
FILES .
SEE ALSO --
DIAGNOSTICS --
- 1 -
ECHO (I) 3/15/72 ECHO (I)
SYNOPSIS _c
e _h
_o_ [ arg89918 ... ]
DESCRIPTION ec
_ _h
_o_ writes all its arguments in order as a line
on the standard output file. It is mainly useful
for producing diagnostics in command files.
FILES --
SEE ALSO --
DIAGNOSTICS --
BUGS --
- 1 -
ED (I) 1/15/73 ED (I)
NAME
ed -- editor
SYNOPSIS
_d
e _ [ name ]
DESCRIPTION
_d
e _ is the standard text editor.
ed
_ _ operates on a copy of any file it is editing; changes
made in the copy have no effect on the file until a write
(w_) command is given. The copy of the text being edited
resides in a temporary file called the b_u
_f_f
_e_r
_. There is
only one buffer.
ed
_ _ supports a limited form of r
_e_g
_u_l
_a_r
_ e
_x_p
_r_e
_s_s
_i_o
_n_ nota-
tion. A regular expression is an expression which speci-
fies a set of strings of characters. A member of this
set of strings is said to be m_a
_t_c
_h_e
_d_ by the regular ex-
pression. The regular expressions allowed by e _d_ are con-
structed as follows:
- 1 -
ED (I) 1/15/73 ED (I)
character.
4. A decimal number n
_ addresses the n
_th line of the
buffer.
- 2 -
ED (I) 1/15/73 ED (I)
(.)a
<text>
The a_ppend command reads the given text and appends it
after the addressed line. "." is left on the last
line input, if there were any, otherwise at the ad-
dressed line. Address "0" is legal for this com-
- 3 -
ED (I) 1/15/73 ED (I)
(.,.)c
<text>
The c
_hange command deletes the addressed lines, then
accepts input text which replaces these lines. "."
is left at the last line input; if there were none,
it is left at the first line not changed.
(.,.)d
The d
_elete command deletes the addressed lines from
the buffer. The line originally after the last
line deleted becomes the current line; if the lines
deleted were originally at the end, the new last
line becomes the current line.
e filename
The e
_dit command causes the entire contents of the
buffer to be deleted, and then the named file to be
read in. "." is set to the last line of the buf-
fer. The number of characters read is typed.
"filename" is remembered for possible use as a de-
fault file name in a subsequent r
_ or w
_ command.
f filename
The f
_ilename command prints the currently remem-
bered file name. If "filename" is given, the cur-
rently remembered file name is changed to "file-
name".
(.)i
<text>
This command i
_nserts the given text before the ad-
dressed line. "." is left at the last line input;
if there were none, at the addressed line. This
command differs from the a
_ command only in the
placement of the text.
- 4 -
ED (I) 1/15/73 ED (I)
(.)kx
The mark
_ command associates or marks the addressed
line with the single character mark name "x". The
ten most recent mark names are remembered. The
current mark names may be printed with the n
_ com-
mand.
(.,.)mA
The m_ove command will reposition the addressed
lines after the line addressed by "A". The line
originally after the last line moved becomes the
current line; if the lines moved were originally at
the end, the new last line becomes the current
line.
n
The markn
_ames command will print the current mark
names.
(.,.)p
The p_rint command prints the addressed lines. "."
is left at the last line printed. The p _ command
_a
m _y
_ be placed on the same line after any command.
_
q
The q
_uit command causes e_d
_ to exit. No automatic
write of a file is done.
($)r filename
The r
_ead command reads in the given file after the
addressed line. If no file name is given, the re-
membered file name, if any, is used (see e
_ and f
_
commands). The remembered file name is not changed
unless "filename" is the very first file name men-
tioned. Address "0" is legal for r_ and causes the
file to be read at the beginning of the buffer. If
the read is successful, the number of characters
read is typed. "." is left at the last line read
in from the file.
- 5 -
ED (I) 1/15/73 ED (I)
substituted.
(1,$)w filename
The w
_rite command writes the addressed lines onto
the given file. If the file does not exist, it is
created mode 17 (readable and writeable by every-
one). The remembered file name is n_o
_t_ changed un-
less "filename" is the very first file name men-
tioned. If no file name is given, the remembered
file name, if any, is used (see e
_ and f_ commands).
"." is unchanged. If the command is successful,
the number of characters written is typed.
($)=
The line number of the addressed line is typed.
"." is unchanged by this command.
!UNIX command
The remainder of the line after the "!" is sent to
UNIX to be interpreted as a command. "." is un-
changed.
(.+1)<newline>
An address alone on a line causes that line to be
printed. A blank line alone is equivalent to
".+1p"; it is useful for stepping through text.
Ed
_ _ has size limitations on the maximum number of lines
that can be edited, and on the maximum number of charac-
ters in a line, in a global’s command list, and in a re-
membered file name. These limitations vary with the
physical core size of the PDP11 computer on which e_d
_ is
being used. The range of limiting sizes for the above
mentioned items is; 1300 - 4000 lines per file, 256 - 512
characters per line, 63 - 256 characters per global com-
mand list, and 64 characters per file name.
- 6 -
ED (I) 1/15/73 ED (I)
FILES
/tmp/etm? temporary
/etc/msh to implement the "!" command.
SEE ALSO --
BUGS --
- 7 -
EXIT(I) 3/15/72 EXIT(I)
SYNOPSIS _x
e _i
_t_
DESCRIPTION ex
_ _i
_t_ performs a s
_e_e
_k_ to the end of its standard
input file. Thus, if it is invoked inside a file
of commands, upon return from e _x
_i_t
_ the shell will
discover an end-of-file and terminate.
FILES --
DIAGNOSTICS --
BUGS --
- 1 -
FACTOR (I) 1/15/73 FACTOR (I)
SYNOPSIS _a
f _c
_t_o
_r_
FILES --
SEE ALSO --
BUGS --
- 1 -
FC (I) 9/1/72 FC (I)
SYNOPSIS _c
f _ [ -
_c_ ] sfile1.
_f_ ... ofile1 ...
DESCRIPTION fc
_ _ is the UNIX Fortran compiler. It accepts
three types of arguments:
4. _
& as the first character of a line signals a
continuation card.
5. _
c as the first character of a line signals a
comment.
- 1 -
FC (I) 9/1/72 FC (I)
- 2 -
FC (I) 9/1/72 FC (I)
Runtime diagnostics:
- 3 -
FC (I) 9/1/72 FC (I)
16 real**real overflow
binary I/O
- 4 -
FED (I) 1/15/73 FED (I)
NAME
fed -- edit associative memory for form letter
SYNOPSIS
_e
f _d
_
DESCRIPTION
fe
_ _d
_ is used to edit a form letter associative
memory file, form.m, which consists of named
strings. Commands consist of single letters fol-
lowed by a list of string names separated by a
single space and ending with a new line. The
conventions of the Shell with respect to ’*’ and
’?’ hold for all commands but m_ where literal
string names are expected. The commands are:
e name918 ...
e newname 0 (printed
by ed) r file 200 w
200 q (get out of ed)
q (get out of fe)
d [ name918 ... ]
(m
_ove) changes the name of name918 to
name928 and removes previous string name928
- 1 -
FED (I) 1/15/73 FED (I)
n [ name918 ... ]
(n
_ames) lists the string names in the memo-
ry. If called with the optional arguments,
it just lists those requested.
p name918 ...
q (q
_uit) returns to the system.
c [ p
_ ] [ f
_ ]
BUGS --
- 2 -
FORM (I) 6/15/72 FORM (I)
NAME
form -- form letter generator
SYNOPSIS
_o
f _r
_m_ proto arg918 ...
DESCRIPTION
fo
_ _r
_m_ generates a form letter from a prototype
letter, an associative memory, arguments and in a
special case, the current date.
If f
_o_r
_m_ is invoked with the p
_r_o
_t_o
_ argument ’x’,
the associative memory is searched for an entry
with name ’x’ and the contents filed under that
name are used as the prototype. If the search
fails, the message "[x]:" is typed on the console
and whatever text is typed in from the console,
terminated by two new lines, is used as the pro-
totype.
Basically, f
_o_r
_m_ is a copy process from the proto-
type to the output file. If an element of the
form [n] (where n _ is a digit from 1 to 9) is en-
countered, the n _th argument a
_r_g
_9n8 is inserted in
its place, and that argument is then rescanned.
If [0] is encountered, the current date is in-
serted. If the desired argument has not been
given, a message of the form "[n]:" is typed.
The response typed in then is used for that argu-
ment.
- 1 -
FORM (I) 6/15/72 FORM (I)
FILES
form.m associative memory
form? output file (read only)
SEE ALSO
fed(I), type(I), roff(I)
DIAGNOSTICS
"cannot open output file" "cannot open memory
file" when the appropriate files cannot be locat-
ed or created.
BUGS
An unbalanced ] or } acts as an end of file but
may add a few strange entries to the associative
memory.
- 2 -
FORML (I) 10/24/72 FORML (I)
SYNOPSIS _o
f _r
_m_l
_ [ name ] ...
BUGS --
- 1 -
GOTO (I) 3/15/72 GOTO (I)
SYNOPSIS _o
g _t
_o_ label
DESCRIPTION go
_ _t
_o_ is only allowed when the Shell is taking
commands from a file. The file is searched (from
the beginning) for a line beginning with ":" fol-
lowed by one or more spaces followed by the la-
__b
_e_l
_. If such a line is found, the g _o
_t_o
_ command
returns. Since the read pointer in the command
file points to the line after the label, the ef-
fect is to cause the Shell to transfer to the la-
belled line.
FILES --
BUGS --
- 1 -
HYPHEN (I) 1/15/73 HYPHEN (I)
SYNOPSIS _y
h _p
_h_e
_n_ file1 ...
FILES --
SEE ALSO --
DIAGNOSTICS yes
- 1 -
IF (I) 3/15/72 IF (I)
SYNOPSIS _f
i _ expr command [ arg918 ... ]
DESCRIPTION if
_ _ evaluates the expression e_x
_p_r
_, and if its val-
ue is t_r
_u_e
_, executes the given c_o_m
_m_a
_n_d
_ with the
given arguments.
_r
- _ file
true if the file exists and is readable.
_w
- _ file
true if the file exists and is writable
s1 =
_ s2
true if the strings s
_1_ and s
_2_ are equal.
s1 !
_=_ s2
true if the strings s
_1_ and s
_2_ are not
equal.
_
!
unary negation operator
_a
- _
binary a
_n_d
_ operator
_o
- _
binary o
_r_ operator
_ expr )
( _
parentheses for grouping.
-a
_ _ has higher precedence than -
_o_. Notice that
all the operators and flags are separate argu-
ments to i_f
_ and hence must be surrounded by spa-
ces.
FILES --
BUGS --
- 1 -
LD (I) 3/15/72 LD (I)
SYNOPSIS _d
l _ [ -
_s_u
_l_x
_r_ ] name1 ...
DESCRIPTION ld
_ _ combines several object programs into one;
resolves external references; and searches li-
braries. In the simplest case the names of sev-
eral object programs are given, and l
_d_ combines
them, producing an object module which can be ei-
ther executed or become the input for a further
_d
l _ run. In the latter case, the "-r" option must
be given to preserve the relocation bits.
ld
_ _ understands several flag arguments which are
written preceded by a "-":
- 1 -
LD (I) 3/15/72 LD (I)
The output of l
_d_ is left on a
_._o
_u_t
_. This file is
executable only if no errors occurred during the
load.
"premature EOF"
BUGS --
- 2 -
LN (I) 3/15/72 LN (I)
SYNOPSIS _n
l _ name1 [ name2 ]
DESCRIPTION ln
_ _ creates a link to an existing file name1. If
name2 is given, the link has that name; otherwise
it is placed in the current directory and its
name is the last component of name1.
FILES --
DIAGNOSTICS "?"
- 1 -
LOGIN (I) 3/15/72 LOGIN (I)
SYNOPSIS _o
l _g
_i_n
_ [ username [ password ] ]
DESCRIPTION The l
_o_g
_i_n
_ command is used when a user initially
signs onto UNIX, or it may be used at any time to
change from one user to another. The latter case
is the one summarized above and described here.
See l
_o_g
_i_n
_ (VII) for how to dial up initially.
If l
_o_g
_i_n
_ is invoked without an argument, it will
ask for a user name, and, if appropriate, a pass-
word. Echoing is turned off (if possible) during
the typing of the password, so it will not appear
on the written record of the session.
BUGS --
- 1 -
LS (I) 3/15/72 LS (I)
SYNOPSIS _s
l _ [ -
_l_t
_a_s
_d_ ] name1 ...
DESCRIPTION ls
_ _ lists the contents of one or more directories
under control of several options:
-l list in l
_ong format, giving i-number, mode,
owner, size in bytes, and time of last modi-
fication for each file. (see s_t
_a_t
_ for for-
mat of the mode)
BUGS --
- 1 -
M6 (I) 11/15/72 M6 (I)
SYNOPSIS _6
m _ [ -
_d_ arg1 ] [ arg2 [ arg3 ] ]
DESCRIPTION m6
_ _ takes input from file arg2 (or standard input
if arg2 is missing) and places output on file
arg3 (or standard output). A working file of
definitions, "[Link]", is initialized from file
arg1 if that is supplied. M6 differs from the
standard [1] in these respects:
\.br [meta,<:>,]:
[meta,[substr,<<>>,1,1;,{]
[meta,[substr,{{>>,2,1;,}]
0 - no function
1,2,3,4,5,6 - gt,eq,ge,lt,ne,le
7,8 - seq,sne
9,10,11,12,13 - add,sub,mpy,div,exp
20 - if
21,22 - def,copy
23 - meta
24 - size
25 - substr
26,27 - go,gobk
28 - del
29 - dnl
30,31 - save,rest
- 1 -
M6 (I) 11/15/72 M6 (I)
- 2 -
MAIL (I) 10/25/72 MAIL (I)
SYNOPSIS ma
_ _i
_l_ [ -
_y_n
_ ]
m_
_ a_
i_l letter person ...
_a
m _i
_l_ person
DESCRIPTION ma
_ _i
_l_ without an argument searches for a file
called m _a
_i_l
_b_o
_x_, prints it if present, and asks if
it should be saved. If the answer is "y", the
mail is renamed m _b
_o_x
_, otherwise it is deleted.
_a
M _i
_l_ with a - _y_n
_ argument works the same way, ex-
cept that the answer to the question is supplied
by the argument.
A p_e_r
_s_o
_n_ is either a user name recognized by lo-
__g
_i_n
_, in which case the mail is sent to the de-
fault working directory of that user, or the path
name of a directory, in which case m _a
_i_l
_b_o
_x_ in
that directory is used.
BUGS --
- 1 -
MAN (I) 3/15/72 MAN (I)
SYNOPSIS _a
m _n
_ title [ section ]
DESCRIPTION ma
_ _n
_ is a shell command file that will locate and
run off a particular section of this manual. Ti-
tle is the the desired part of the manual. Sec-
tion is the section number of the manual. (In
Arabic, not Roman numerals.) If section is miss-
ing, 1_ is assumed. For example,
man man
FILES /sys/man/man?/*
BUGS --
- 1 -
MESG (I) 3/15/72 MESG (I)
SYNOPSIS _e
m _s
_g_ [ n
_ ][ y
_ ]
DESCRIPTION me
_ _s
_g_ n
_ forbids messages via w _r
_i_t
_e_ by revoking
non-user write permission on the user’s typewrit-
er. m _e_s
_g_ y
_ reinstates permission. m _e
_s_g
_ with no
argument reverses the current permission. In all
cases the previous state is reported.
FILES /dev/tty?
BUGS --
- 1 -
MKDIR (I) 3/15/72 MKDIR (I)
SYNOPSIS _k
m _d
_i_r
_ dirname ...
DESCRIPTION _k
m _d
_i_r
_ creates specified directories in mode 17.
FILES --
BUGS --
- 1 -
MT (I) 6/12/72 MT (I)
SYNOPSIS _t
m _ [ key ] [ name ... ]
DESCRIPTION mt
_ _ saves and restores selected portions of the
file system hierarchy on magtape. Its actions
are controlled by the k_e
_y_ argument. The key is a
string of characters containing at most one func-
tion letter and possibly one or more function
modifiers. Other arguments to the command are
file or directory names specifying which files
are to be dumped, restored, or tabled.
l is the same as t
_ except that an expanded
listing is produced giving all the avail-
able information about the listed files.
v Normally m
_t_ does its work silently. The v
_
(verbose) option causes it to type the name
of each file it treats preceded by a letter
to indicate what is happening.
The v
_ option can be used with r
_ and x
_ only.
- 1 -
MT (I) 6/12/72 MT (I)
w causes m_t
_ to pause before treating each
file, type the indicative letter and the
file name (as with v_) and await the user’s
response. Response "y" means "yes", so the
file is treated. Null response means "no",
and the file does not take part in whatever
is being done. Response "x" means "exit";
the m
_t_ command terminates immediately. In
the x
_ function, files previously asked
about have been extracted already. With r _,
no change has been made to the tape.
FILES /dev/mt?
- 2 -
MV (I) 2/9/73 MV (I)
SYNOPSIS _v
m _ name1 name2
DESCRIPTION mv
_ _ changes the name of name1 to name2. If name2
is a directory, name1 is moved to that directory
with its original file-name. Directories may on-
ly be moved within the same parent directory
(just renamed).
FILES --
SEE ALSO --
DIAGNOSTICS yes
BUGS --
- 1 -
NM (I) 3/15/72 NM (I)
SYNOPSIS _m
n _ [ name ]
DESCRIPTION nm
_ _ prints the symbol table from the output file
of an assembler or loader run. Each symbol name
is preceded by its value (blanks if undefined)
and one of the letters "U" (undefined) "A" (abso-
lute) "T" (text segment symbol), "D" (data seg-
ment symbol), or "B" (bss segment symbol). Glob-
al symbols have their first character underlined.
The output is sorted alphabetically.
FILES [Link]
DIAGNOSTICS "?"
BUGS --
- 1 -
NROFF (I) 1/15/73 NROFF (I)
SYNOPSIS _r
n _o
_f_f
_ [+
_N] [-
_s_] [-
_h_] [-
_q_] [-
_i_] files
DESCRIPTION nr
_ _o
_f_f
_ formats text according to control lines em-
bedded in the text files. The non-file option
arguments are interpreted as follows:
DIAGNOSTICS none
- 1 -
NROFF (I) 1/15/73 NROFF (I)
BUGS -
- 2 -
NROFF (I) 1/15/73 NROFF (I)
I. _a
P _g
_e_ C
_o_n
_t_r
_o_l
_
.pl +N
_ N=66 N=66 no Page L
_ _ength.
.bp _N
+ N=1 - yes _egin P
B _age.
.pn _N
+ N=1 ignored no _age N
P _umber.
.po _N
+ N=0 N=prev no _age O
P _ffset.
.ne N - N=1 no _E
N _ed N lines.
II. _e
T _x
_t_ F
_i_l
_l_i
_n_g
_, A
_d_j
_u_s
_t_i
_n_g
_, a
_n_d
_ C
_e_n
_t_e
_r_i
_n_g
_
.br - - yes BR
_ _eak.
.fi fill - yes _I
F _ll output lines.
.nf fill - yes _oF
N _ill.
.ad c adj,norm adjust no _D
A _just mode on.
.na adjust - no _oA
N _djust.
.ce N off N=1 yes _E
C _nter N input text lines.
III. _i
L _n
_e_ S
_p_a
_c_i
_n_g
_ a
_n_d
_ B
_l_a
_n_k
_ L
_i_n
_e_s
_
.ls +N
_ N=1 N=prev no Line S
_ _pacing.
.sp N - N=1 yes _P
S _ace N lines
.lv N - N=1 no OR-
.sv N - N=1 no _aV
S _e N lines.
.os - - no _utput S
O _aved lines.
.ns space - no _o-S
N _pace mode on.
.rs - - no _estore S
R _pacing.
.xh off - no EX_tra-H
_alf-line mode on.
IV. _i
L _n
_e_ L
_e_n
_g_t
_h_ a
_n_d
_ I
_n_d
_e_n
_t_i
_n_g
_
.ll _
+N N=65 N=prev no Line L
_ _ength.
.in +
_N N=0 N=prev yes _N
I _dent.
.ti +
_N - N=1 yes _emporary I
T _ndent.
V. _a
M _c
_r_o
_s_, D
_i_v
_e_r
_s_i
_o_n
_, a
_n_d
_ L
_i_n
_e_ T
_r_a
_p_s
_
.de xx - ignored no DE
_ _fine or redefine a macro.
.rm xx - - no _eM
R _ove macro name.
.di xx - end no _I
D _vert output to macro "xx".
.wh _N
- xx - no _H
W _en; set a line trap.
.ch _N
- _M
- - no OR-
.ch xx _M
- - no OR-
.ch _N
- y - no OR-
.ch xx y - no _H
C _ange trap line.
VI. _u
N _m
_b_e
_r_ R
_e_g
_i_s
_t_e
_r_s
_
.nr a +
_N -_M - no OR-
.nr ab +_N -
_M - no _umber R
N _egister.
.nc c \n \n no Number C
_ _haracter.
.ar arabic - no Arabic numbers.
.ro arabic - no Roman numbers.
.RO arabic - no ROMAN numbers.
VII. _n
I _p
_u_t
_ a
_n_d
_ O
_u_t
_p_u
_t_ C
_o_n
_v_e
_n_t
_i_o
_n_s
_ a
_n_d
_ C
_h_a
_r_a
_c_t
_e_r
_ T
_r_a
_n_s
_l_a
_t_i
_o_n
_s_
VIII. _y
H _p
_h_e
_n_a
_t_i
_o_n
_.
.nh on - no No H
_ _yphen.
.hy on - no _Y
H _phenate.
.hc c none none no _yphenation indicator C
H _haracter.
IX. _h
T _r
_e_e
_ P
_a_r
_t_ T
_i_t
_l_e
_s_.
X. _u
O _t
_p_u
_t_ L
_i_n
_e_ N
_u_m
_b_e
_r_i
_n_g
_.
.nm _
+N M S I off no Number _
_ Mode on or off, set parameters.
.np M S I reset no _umber P
N _arameters set or reset.
XI. _o
C _n
_d_i
_t_i
_o_n
_a_l
_ I
_n_p
_u_t
_ L
_i_n
_e_ A
_c_c
_e_p
_t_a
_n_c
_e_
XII. _n
E _v
_i_r
_o_n
_m_e
_n_t
_ S
_w_i
_t_c
_h_i
_n_g
_.
XIII. _n
I _s
_e_r
_t_i
_o_n
_s_ f
_r_o
_m_ t
_h_e
_ S
_t_a
_n_d
_a_r
_d_ I
_n_p
_u_t
_ S
_t_r
_e_a
_m_
XIV. _n
I _p
_u_t
_ F
_i_l
_e_ S
_w_i
_t_c
_h_i
_n_g
_
.ig - - no IG
_ _nore.
.fl - - no _L
F _ush output buffer.
.ab - - no _B
A _ort.
- 5 -
OD (I) 1/15/73 OD (I)
SYNOPSIS _d
o _ [ -
_a_b
_c_d
_h_o
_ ] [ file ] [ [+
_]offset[.
_][b
_] ]
DESCRIPTION od
_ _ dumps f
_i_l
_e_ in one or more formats as selected
by the first argument. (If the first argument is
missing, -_o_ is default.) The meanings of the
format argument characters are:
FILES --
DIAGNOSTICS --
BUGS --
- 1 -
OPR (I) 1/15/73 OPR (I)
SYNOPSIS _p
o _r
_ [-
_-_] [-
_] [+
_] [+
_-_]file918 ...
DESCRIPTION op
_ _r
_ will arrange to have the 201 data phone dae-
mon submit a job to the Honeywell 6070 to print
the file arguments. Normally, the output appears
at the GCOS central site. If the first argument
is - _-
_, the output is remoted to station R1.
(Station R1 has a 1403 printer.)
DIAGNOSTICS --
BUGS --
- 1 -
OV (I) 6/12/72 OV (I)
SYNOPSIS _v
o _ [ file ]
DESCRIPTION ov
_ _ is a postprocessor for producing double column
formatted text when using nroff(I). o _v
_ literally
overlays successive pairs of 66-line pages.
FILES none
DIAGNOSTICS none
- 1 -
PASSWD (I) 9/1/72 PASSWD (I)
SYNOPSIS _a
p _s
_s_w
_d_ name password
FILES /etc/passwd
BUGS --
- 1 -
PR (I) 1/15/73 PR (I)
SYNOPSIS _r
p _ [-
_c_m
_] [-
_h_ name] [-
_n] [+
_n] [file918 ...]
DESCRIPTION pr
_ _ produces a printed listing of one or more
files. The output is separated into pages headed
by a date, the name of the file or a header (if
any), and the page number. If there are no file
arguments, p_r
_ prints the standard input file, and
is thus usable as a filter.
-c
_ _ print current date
_m
- _ print date file last modified (default)
_h
- _ treats the next argument as a header
- 1 -
PROOF (I) 1/15/73 PROOF (I)
SYNOPSIS _r
p _o
_o_f
_ oldfile newfile
DESCRIPTION pr
_ _o
_o_f
_ lists those lines of _ n_
e_w_
f_i_
l_e that differ
from corresponding lines in _ o_l_
d_f_
i_l_
e_. The line
number in _ n_
e_w_
f_i_
l_e is given. When changes, inser-
tions or deletions have been made the program at-
tempts to resynchronize the text in the two files
by finding a sequence of lines in both files that
again agree.
FILES --
BUGS pr
_ _o
_o_f
_ is still evolving. Any bugs discovered or
suggestions should be brought to ENP.
- 1 -
RELOC (I) 2/7/73 RELOC (I)
SYNOPSIS _e
r _l
_o_c
_ file [-
_]octal [ -
_ ]
DESCRIPTION re
_ _l
_o_c
_ modifies the named object program file so
that it will operate correctly at a different
core origin than the one for which it was assem-
bled or loaded.
FILES --
DIAGNOSTICS As appropriate
BUGS --
- 1 -
REW (I) 1/15/73 REW (I)
SYNOPSIS _e
r _w
_ [ [m
_]digit ]
DESCRIPTION re
_ _w
_ rewinds DECtape or magtape drives. The digit
is the logical tape number, and should range from
0 to 7. If the digit is preceded by ’m’, r_e
_w_ ap-
plies to magtape rather than DECtape. A missing
digit indicates drive 0.
FILES /dev/tap?
/dev/mt?
SEE ALSO --
BUGS --
- 1 -
RM (I) 1/20/73 RM (I)
SYNOPSIS _m
r _ [ -
_f_ ] [ -
_r_ ] name1 ...
DESCRIPTION rm
_ _ removes the entries for one or more files from
a directory. If an entry was the last link to
the file, the file is destroyed. Removal of a
file requires write permission in its directory,
but neither read nor write permission on the file
itself.
- 1 -
RMDIR (I) 3/15/72 RMDIR (I)
SYNOPSIS _m
r _d
_i_r
_ dir1 ...
DESCRIPTION rm
_ _d
_i_r
_ removes (deletes) directories. The direc-
tory must be empty (except for the standard en-
tries "." and "..", which r _m
_d_i
_r_ itself removes).
Write permission is required in the directory in
which the directory appears.
FILES none
SEE ALSO --
BUGS --
- 1 -
ROFF (I) 6/12/72 ROFF (I)
SYNOPSIS _o
r _f
_f_ [ +
_number ] [ -
_s_ ] [ -
_h_ ] file1 ...
DESCRIPTION ro
_ _f
_f_ formats text according to control lines em-
bedded in the text in file918, ... . Encounter-
ing a nonexistent file terminates printing. The
optional argument "+ _number" causes printing to
begin at the first page with that number. The
optional argument "- _s
_" causes printing to stop
before each page including the first to allow pa-
per manipulation; printing is resumed upon re-
ceipt of an interrupt signal. The optional argu-
ment "-h" causes the output to contain horizontal
tabs for two or more spaces that end on a tab
stop. An interrupt signal received during print-
ing terminates all printing. Incoming intercon-
sole messages are turned off during printing, and
the original message acceptance state is restored
upon termination.
SEE ALSO --
DIAGNOSTICS none
BUGS -
- 1 -
ROFF (I) 6/12/72 ROFF (I)
REQUEST SUMMARY
R_
_ e_
q_u_
e_s_
t _
B_r_
e_a_
k I_
_ n_
i_t_
i_a_
l _
M_e_
a_n_
i_n_
g
- 2 -
ROFF (I) 6/12/72 ROFF (I)
- 3 -
SH (I) 1/15/73 SH (I)
SYNOPSIS _h
s _ [ name [ arg1 ... [ arg9 ] ] ]
DESCRIPTION
_h
s _ is the standard command interpreter. It is the pro-
gram which reads and arranges the execution of the com-
mand lines typed by most users. It may itself be called
as a command to interpret files of commands. Before dis-
cussing the arguments to the shell used as a command, the
structure of command lines themselves will be given.
C_
_ o_
m_m_
a_n_
d _
l_i_
n_e_
s
C_
_ o_
m_m_
a_n_
d _
d_e_
l_i_
m_i_
t_e_
r_s
coma; comb
causes c
_o_m
_a_ to be called, followed immediately by c _o
_m_b
_
without waiting for c _o
_m_a
_ to finish. Thus c
_o_m
_a_ and c
_o_m
_b_
execute simultaneously. As a special case,
- 1 -
SH (I) 1/15/73 SH (I)
coma &
causes c
_o_m
_a_ to be executed and the shell immediately to
request another command without waiting for c _o
_m_a
_.
T_
_ e_
r_m_
i_n_
a_t_
i_o_
n _
R_e_
p_o_
r_t_
i_n_
g
R_
_ e_
d_i_
r_e_
c_t_
i_o_
n _
o_f _
I_/_
O
P_
_ i_
p_e_
s _
a_n_
d _
F_i_
l_t_
e_r_
s
A p
_i_p
_e_ is a channel such that information can be written
into one end of the pipe by one program, and read at the
other end by another program. (See p _i
_p_e
_ (II)). A f
_i_l
_t_e
_r_
is a program which reads the standard input file, per-
forms some transformation, and writes the result on the
standard output file. By extending the syntax used for
redirection of I/O, a command line can specify that the
output produced by a command be passed via a pipe through
another command which acts as a filter. For example:
command >filter>
- 2 -
SH (I) 1/15/73 SH (I)
>f1>f2>...>
>f1>f2>...>file
<f1<f2<...< <f1<f2<...<file
For example:
ls >pr>
ls >pr>xx
G_
_ e_
n_e_
r_a_
t_i_
o_n _
o_f _
a_r_
g_u_
m_e_
n_t _
l_i_
s_t_
s
- 3 -
SH (I) 1/15/73 SH (I)
name.
For example, "*" matches all file names; "?" matches all
one-character file names; "[ab]*.s" matches all file
names beginning with "a" or "b" and ending with ".s";
"?[zi-m]" matches all two-character file names ending
with "z" or the letters "i" through "m".
as /usr/dmr/a?.s
calls a
_s_ with arguments /usr/dmr/a1.s, /usr/dmr/a2.s, ...
/usr/dmr/a9.s in that order.
Q_
_ u_
o_t_
i_n_
g
- 4 -
SH (I) 1/15/73 SH (I)
A_
_ r_
g_u_
m_e_
n_t _
p_a_
s_s_
i_n_
g
The n
_a_m
_e_ is the name of a file which will be read and in-
terpreted. If not given, this subinstance of the shell
will continue to read the standard input file.
E_
_ n_
d _
o_f _
f_i_
l_e
S_
_ p_
e_c_
i_a_
l _
c_o_
m_m_
a_n_
d_s
C_
_ o_
m_m_
a_n_
d _
f_i_
l_e _
e_r_
r_o_
r_s_
; _
i_n_
t_e_
r_r_
u_p_
t_s
DIAGNOSTICS
- 5 -
SH (I) 1/15/73 SH (I)
- 6 -
SIZE (I) 9/2/72 SIZE (I)
SYNOPSIS _i
s _z
_e_ [ object ... ]
SEE ALSO --
BUGS --
- 1 -
SNO (I) 2/9/73 SNO (I)
SYNOPSIS _n
s _o
_ [ file ]
DESCRIPTION sn
_ _o
_ is a SNOBOL III (with slight differences)
compiler and interpreter. s _n
_o_ obtains input from
the concatenation of f_i
_l_e
_ and the standard input.
All input through a statement containing the la-
bel ’end’ is considered program and is compiled.
The rest is available to ’syspit’.
No back referencing
x = "abc"
a *x* x unanchored search for "abc"
define f()
or
define f(a,b,c)
- 1 -
SNO (I) 2/9/73 SNO (I)
FILES --
DIAGNOSTICS As appropriate
- 2 -
SORT (I) 9/2/72 SORT (I)
SYNOPSIS _o
s _r
_t_ [ -
_ ] [ input [ output ] ]
DESCRIPTION so
_ _r
_t_ will sort the input file and write the sort-
ed file on the output file. If the output file
is not given, the input file is rewritten. If
the input file is missing, sort uses the standard
input as input and the standard output for out-
put. Thus s _o
_r_t
_ may be used as a filter.
_o
s _r
_t_ is implemented in such a way that
sort /dev/mt0
FILES /tmp/stm?
SEE ALSO --
DIAGNOSTICS --
- 1 -
SPEAK (I) 2/1/73 SPEAK (I)
SYNOPSIS _p
s _e
_a_k
_ [ -
_ ] [ vocabulary ]
DESCRIPTION sp
_ _e
_a_k
_ turns a stream of ascii words into utter-
ances and outputs them to a voice synthesizer.
It has facilities for maintaining a vocabulary.
It receives, from the standard input
!r
_ _ file replace coded vocabulary from file
_w
! _ file write coded vocabulary on file
_p
! _ print phonetics for working word
_l
! _ list vocabulary on standard output
with phonetics
_c
! _ word copy phonetics from working word to
specified word
_s
! _ file (save) append working word and phonet-
ics to file in style of !
_l_
sp
_ _e
_a_k
_ is initialized with a coded vocabulary
stored in file _ /_
e_t_
c_/_
s_p_
e_a_
k_._
m_. The vocabulary op-
tion substitutes a different file for s _p
_e_a
_k_.
_m_.
The -
_ option suppresses all utterances.
FILES /etc/speak.m
- 1 -
SPLIT (I) 1/15/73 SPLIT (I)
FILES -
SEE ALSO --
DIAGNOSTICS yes
- 1 -
STAT (I) 3/15/72 STAT (I)
SYNOPSIS _t
s _a
_t_ name1 ...
DESCRIPTION st
_ _a
_t_ gives several kinds of information about one
or more files:
i-number
access mode
number of links
owner
size in bytes
date and time of last modification
name (useful when several files are named)
2 d: file is a directory
x: file is executable
u: set user ID on execution
-: none of the above
FILES /etc/passwd
- 1 -
STRIP (I) 3/15/72 STRIP (I)
SYNOPSIS _t
s _r
_i_p
_ name1 ...
DESCRIPTION st
_ _r
_i_p
_ removes the symbol table and relocation
bits ordinarily attached to the output of the as-
sembler and loader. This is useful to save space
after a program has been debugged.
BUGS --
- 1 -
STTY (I) 6/12/72 STTY (I)
SYNOPSIS _t
s _t
_y_ option918 ...
DESCRIPTION St
_ _t
_y_ will set certain I/O options on the current
output teletype. The option strings are selected
from the following set:
ev
_ _e
_n_ allow even parity.
_e
- _v
_e_n_ disallow even parity.
_d
o _d
_ allow odd parity
_o
- _d
_d_ disallow odd parity
_a
r _w
_ raw mode input
(no erase/kill/interrupt/quit/EOT)
-r
_ _a_w_ negate raw mode
_n
- _l_ allow cr for lf (and echo lf cr)
_l
n _ allow nl only
_c
e _h_o_ echo back every character typed.
_e
- _c_h_o_ do not echo characters.
_c
l _a_s_e_ map upper case to lower case
_l
- _c_a_s_e_ do not map case
_t
- _a_b_s_ replace tabs by spaces
_a
t _b_s_ preserve tabs
_e
d _l_a_y_ calculate cr and tab delays.
_d
- _e_l_a_y_ no cr/tab delays
_b
e _c_d_i_c_ ebcdic ball conversion (2741 only)
_o
c _r_r_e_s_ correspondence ball conversion (2741 only)
BUGS --
- 1 -
SUM (I) 3/15/72 SUM (I)
SYNOPSIS _u
s _m
_ name1 ...
DESCRIPTION su
_ _m
_ sums the contents of the bytes (mod 2^16) of
one or more files and prints the answer in octal.
A separate sum is printed for each file speci-
fied, along with the number of whole or partial
512-byte blocks read.
In practice, s
_u_m
_ is often used to verify that all
of a special file can be read without error.
FILES none
SEE ALSO --
BUGS none
- 1 -
TAP (I) 3/15/72 TAP (I)
SYNOPSIS _a
t _p
_ [ key ] [ name ... ]
DESCRIPTION ta
_ _p
_ saves and restores selected portions of the
file system hierarchy on DECtape. Its actions
are controlled by the k_e
_y_ argument. The key is a
string of characters containing at most one func-
tion letter and possibly one or more function
modifiers. Other arguments to the command are
file or directory names specifying which files
are to be dumped, restored, or tabled.
l is the same as t
_ except that an expanded
listing is produced giving all the avail-
able information about the listed files.
- 1 -
TAP (I) 3/15/72 TAP (I)
v Normally t
_a_p
_ does its work silently. The v
_
(verbose) option causes it to type the name
of each file it treats preceded by a letter
to indicate what is happening.
The v
_ option can be used with r
_, u
_, d
_, and
_ only.
x
w causes t _a
_p_ to pause before treating each
file, type the indicative letter and the
file name (as with v _) and await the user’s
response. Response "y" means "yes", so the
file is treated. Null response means "no",
and the file does not take part in whatever
is being done. Response "x" means "exit";
the t
_a_p
_ command terminates immediately. In
the x
_ function, files previously asked
about have been extracted already. With r _,
_, and d
u _ no change has been made to the
tape.
FILES /dev/tap?
- 2 -
TAP (I) 3/15/72 TAP (I)
Tape overflow
Phase error (a file has changed after it was se-
lected for dumping but before it was dumped)
- 3 -
TIME (I) 10/26/72 TIME (I)
SYNOPSIS _i
t _m
_e_ command
FILES --
DIAGNOSTICS "?"
"command terminated abnormally"
"Command not found."
- 1 -
TMG (I) 10/21/72 TMG (I)
SYNOPSIS _m
t _g
_ name
DESCRIPTION tm
_ _g
_ produces a translator for the language whose
parsing and translation rules are described in
file name._t
_. The new translator appears in [Link]
and may be used thus:
_.
a _o
_u_t
_ input [ output ]
- 1 -
TSS (I) 3/15/72 TSS (I)
SYNOPSIS _s
t _s
_
DESCRIPTION ts
_ _s
_ will call the Honeywell 6070 on the 201 data
phone. It will then go into direct access with
TSS. Output generated by TSS is typed on the
standard output and input requested by TSS is
read from the standard input with UNIX typing
conventions.
SY
_ _S
_T_E
_M_?
_ CSR/DACCOPY (s) AFTname
_e
S _n
_d__E_n
_c_o
_d_e
_d__F
_i_l
_e_ ˜s file
SY
_ _S
_T_E
_M_? CSR/DACCOPY (r) AFTname
_e
R _c
_e_i
_v_e
__E
_n_c
_o_d
_e_d
__F
_i_l
_e_ ˜r file
SEE ALSO --
- 1 -
TTY (I) 3/15/72 TTY (I)
SYNOPSIS _t
t _y
_
DESCRIPTION tt
_ _y
_ gives the name of the user’s typewriter in
the form "ttyn" for n_ a digit. The actual path
name is then "/dev/ttyn".
FILES --
SEE ALSO --
BUGS --
- 1 -
TYPE (I) 6/12/72 TYPE (I)
SYNOPSIS _y
t _p
_e_ file918 ...
DESCRIPTION ty
_ _p
_e_ copies its input files to the standard out-
put. Before each new page (66 lines) and before
each new file, type stops and reads the standard
input for a new line character before continuing.
This allows time for insertion of single sheet
paper.
FILES --
SEE ALSO --
DIAGNOSTICS --
BUGS --
- 1 -
TYPO (I) 1/15/73 TYPO (I)
SYNOPSIS _y
t _p
_o_ [ -
_ ] file1 ...
SEE ALSO --
- 1 -
UN (I) 3/15/72 UN (I)
SYNOPSIS _n
u _ [ name ]
DESCRIPTION un
_ _ prints a list of undefined symbols from an as-
sembly or loader run. If the file argument is
not specified, a_.
_o_u
_t_ is the default. Names are
listed alphabetically except that non-global sym-
bols come first. Undefined global symbols (unre-
solved external references) have their first
character underlined.
FILES [Link]
BUGS --
- 1 -
UNIQ (I) 12/1/72 UNIQ (I)
SYNOPSIS _n
u _i
_q_ [ -
_u_d
_ ] [ input [ output ] ]
DESCRIPTION un
_ _i
_q_ reads the input file comparing adjacent
lines. In the normal case, the second and suc-
ceeding copies of repeated lines are removed; the
remainder is written on the output file. Note
that repeated lines must be adjacent in order to
be found. (See sort(I)) If the - _u
_ flag is used,
just the lines that are not repeated in the orig-
inal file are output. The - _d
_ option specifies
that one copy of just the repeated lines is to be
written. Note that the normal mode output is the
union of the - _u
_ and -
_d_ mode outputs.
FILES --
BUGS --
- 1 -
VS (I) 2/13/73 VS(I)
SYNOPSIS _s
v _
DESCRIPTION vs
_ _ accepts phoneme descriptor lists and trans-
lates them into byte strings suitable for the
Federal Screw Works Voice Synthesizer. Phoneme
descritors should be separated by commas and have
the general form "%NIxx" where "xx" is a one or
two character phoneme name, "I" is an optional
inflection parameter, and "%N" is an optional
count of the number of times the phoneme is to be
repeated (maximum 9). "I" can have the values 0,
1, 2, 3 representing decreasing strength (default
is 2). A description of the phonemes and their
names can be found in the file v_s
_p_(VII). For ex-
ample,
a0,o1,t,r,1ai,1ay,d,j,ih,u1,%2s
FILES -
DIAGONOSTICS -
BUGS -
- 1 -
WC (I) 3/15/72 WC (I)
SYNOPSIS _c
w _ name918 ...
DESCRIPTION wc
_ _ provides a count of the words, text lines, and
control lines for each argument file.
FILES --
BUGS --
- 1 -
WHO (I) 3/15/72 WHO (I)
SYNOPSIS _h
w _o
_ [ who-file ]
DESCRIPTION wh
_ _o
_, without an argument, lists the name, type-
writer channel, and login time for each current
UNIX user.
FILES /tmp/utmp
BUGS --
- 1 -
WRITE (I) 3/15/72 WRITE (I)
SYNOPSIS _r
w _i
_t_e
_ user
DESCRIPTION wr
_ _i
_t_e
_ copies lines from your typewriter to that
of another user. When first called, w _r
__it
_e_ sends
the message
BUGS wr
_ _i
_t_e
_ should check the mode of the other user’s
typewriter and refuse to proceed unless non-user
write permission is given. Currently it is pos-
sible to write to another person with the same
user-ID even though he has forbidden messages.
wr
_ _i
_t_e
_ should also allow specification of the
typewriter name of a user who is logged in sever-
al times instead of picking out the instance with
the lowest name.
- 1 -
BOOT (II) 7/29/72 BOOT (II)
- 1 -
BREAK (II) 3/15/72 BREAK (II)
DESCRIPTION br
_ _e
_a_k
_ sets the system’s idea of the highest loca-
tion used by the program to a _d
_d_r
_. Locations
greater than a _d
_d_r
_ and below the stack pointer are
not swapped and are thus liable to unexpected
modification.
BUGS --
- 1 -
CEMT (II) 9/4/72 CEMT (II)
SEE ALSO --
DIAGNOSTICS --
BUGS --
- 1 -
CHDIR (II) 3/15/72 CHDIR (II)
DESCRIPTION di
_ _r
_n_a
_m_e
_ is the address of the pathname of a di-
rectory, terminated by a 0 byte. c _h
_d_i
_r_ causes
this directory to become the current working di-
rectory.
BUGS --
- 1 -
CHMOD (II) 3/15/72 CHMOD (II)
01 write, non-owner
02 read, non-owner
04 write, owner
10 read, owner
20 executable
40 set user ID on execution
BUGS --
- 1 -
CHOWN (II) 3/15/72 CHOWN (II)
BUGS --
- 1 -
CLOSE (II) 3/15/72 CLOSE (II)
BUGS --
- 1 -
CREAT (II) 3/15/72 CREAT (II)
DESCRIPTION cr
_ _e
_a_t
_ creates a new file or prepares to rewrite
an existing file called n _a
_m_e
_; n
_a_m
_e_ is the address
of a null-terminated string. If the file did not
exist, it is given mode m _o
_d_e
_; if it did exist,
its mode and owner remain unchanged but it is
truncated to 0 length.
The m
_o_d
_e_ given is arbitrary; it need not allow
writing. This feature is used by programs which
deal with temporary files of fixed names. The
creation is done with a mode that forbids writ-
ing. Then if a second instance of the program
attempts a c _r
_e_a
_t_, an error is returned and the
program knows that the name is unusable for the
moment.
DIAGNOSTICS The error bit (c-bit) may be set if: a needed di-
rectory is not readable; the file does not exist
and the directory in which it is to be created is
not writable; the file does exist and is un-
writable; the file is a directory; there are al-
ready 10 files open.
BUGS --
- 1 -
CSW (II) 7/29/72 CSW (II)
SEE ALSO --
DIAGNOSTICS none
- 1 -
DUP (II) 1/15/73 DUP (II)
Du
_ _p
_ is used more to manipulate the value of file
descriptors than to genuinely duplicate a file
descriptor. Since the algorithm to allocate file
descriptors is known to use the lowest available
value between 0 and 9, combinations of d _u
_p_ and
_l
c _o
_s_e
_ can be used to manipulate file descriptors
in a general way. This is handy for manipulating
standard input and/or standard output.
DIAGNOSTICS The error bit (c-bit) is set if: the given file
descriptor is invalid; there are already 10 open
files.
BUGS --
- 1 -
EXEC (II) 3/15/72 EXEC (II)
DESCRIPTION ex
_ _e
_c_ overlays the calling process with the named
file, then transfers to the beginning of the core
image of the file. The first argument to e _x
_e_c
_ is
a pointer to the name of the file to be executed.
The second is the address of a list of pointers
to arguments to be passed to the file. Conven-
tionally, the first argument is the name of the
file. Each pointer addresses a string terminated
by a null byte.
- 1 -
EXEC (II) 3/15/72 EXEC (II)
BUGS Very high core and very low core are used by e
_x_e
_c_
to construct the argument list for the new core
image. If the original copies of the arguments
reside in these places, problems can result.
- 2 -
EXIT (II) 3/15/72 EXIT (II)
DESCRIPTION ex
_ _i
_t_ is the normal means of terminating a
process. Exit closes all the process’ files and
notifies the parent process if it is executing a
_a
w _i
_t_. The low byte of r0 is available as status
to the parent process.
DIAGNOSTICS -
BUGS --
- 1 -
FORK (II) 3/15/72 FORK (II)
DESCRIPTION fo
_ _r
_k_ is the only way new processes are created.
The new process’s core image is a copy of that of
the caller of f _o
_r_k
_; the only distinction is the
return location and the fact that r0 in the old
process contains the process ID of the new
process. This process ID is used by w _a
_i_t
_.
- 1 -
FPE (II) 9/2/72 FPE (II)
SEE ALSO --
DIAGNOSTICS --
- 1 -
FSTAT (II) 3/15/72 FSTAT (II)
BUGS --
- 1 -
GETUID (II) 3/15/72 GETUID (II)
DESCRIPTION ge
_ _t
_u_i
_d_ returns the real user ID of the current
process. The real user ID identifies the person
who is logged in, in contradistinction to the ef-
fective user ID, which determines his access per-
mission at each moment. It is thus useful to
programs which operate using the "set user ID"
mode, to find out who invoked them.
DIAGNOSTICS --
BUGS --
- 1 -
GTTY (II) 3/15/72 GTTY (II)
DESCRIPTION gt
_ _t
_y_ stores in the three words addressed by a
_r_g
_
the status of the typewriter whose file descrip-
tor is given in r0. The format is the same as
that passed by s _t
_t_y
_.
BUGS --
- 1 -
ILGINS (II) 3/15/72 ILGINS (II)
DESCRIPTION il
_ _g
_i_n
_s_ allows a program to catch illegal instruc-
tion traps. If a _r
_g_ is zero, the normal instruc-
tion trap handling is done: the process is termi-
nated and a core image is produced. If a _r
_g_ is a
location within the program, control is passed to
_r
a _g
_ when the trap occurs.
DIAGNOSTICS --
BUGS --
- 1 -
INTR (II) 3/15/72 INTR (II)
DESCRIPTION When a
_r_g
_ is 0, interrupts (ASCII DELETE) are ig-
nored. When a _r
_g_ is 1, interrupts cause their
normal result, that is, force an e _x
_i_t
_. When a_r
_g_
is a location within the program, control is
transferred to that location when an interrupt
occurs.
DIAGNOSTICS --
BUGS --
- 1 -
KILL (II) 6/12/72 KILL (II)
DESCRIPTION ki
_ _l
_l_ destroys a process, given its process num-
ber. The process leaves a core image.
SEE ALSO --
- 1 -
LINK (II) 3/15/72 LINK (II)
BUGS --
- 1 -
MAKDIR (II) 3/15/72 MAKDIR (II)
DESCRIPTION ma
_ _k
_d_i
_r_ creates an empty directory whose name is
the null-terminated string pointed to by n _a
_m_e
_.
The mode of the directory is m _o
_d_e
_. The special
entries "." and ".." are not present.
_a
m _k
_d_i
_r_ may be invoked only by the super-user.
BUGS --
- 1 -
MDATE (II) 3/15/72 MDATE (II)
DESCRIPTION Fi
_ _l
_e_ is the address of a null-terminated string
giving the name of a file. The modified time of
the file is set to the time given in the r0-r1
registers.
SEE ALSO --
BUGS --
- 1 -
MOUNT (II) 3/15/72 MOUNT (II)
DESCRIPTION mo
_ _u
_n_t
_ announces to the system that a removable
file system has been mounted on special file spe-
___c
_i_a
_l_; from now on, references to file n _a
_m_e
_ will
refer to the root file on the newly mounted file
system. S _p
_e_c
_i_a
_l_ and n
_a_m
_e_ are pointers to null-
terminated strings containing the appropriate
path names.
Na
_ _m
_e_ must exist already. If it had contents,
they are inaccessible while the file system is
mounted.
- 1 -
NICE (II) 3/15/72 NICE (II)
DIAGNOSTICS --
BUGS --
- 1 -
OPEN (II) 3/15/72 OPEN (II)
DESCRIPTION op
_ _e
_n_ opens the file n_a
_m_e
_ for reading (if m_o_d
_e_ is
0) or writing (if m _o
_d_e
_ is non-zero). n _a
_m_e
_ is the
address of a string of ASCII characters repre-
senting a path name, terminated by a null charac-
ter.
DIAGNOSTICS The error bit (c-bit) is set if the file does not
exist, if one of the necessary directories does
not exist or is unreadable, if the file is not
readable (resp. writable), or if 10 files are
open.
BUGS --
- 1 -
PIPE (II) 1/15/73 PIPE (II)
DESCRIPTION The p
_i_p
_e_ system call creates an I/O mechanism
called a pipe. The file descriptor returned can
be used in both read and write operations. When
the pipe is written, the data is buffered up to
504 bytes at which time the writing process is
suspended. A read on the pipe will pick up the
buffered data.
BUGS --
- 1 -
QUIT (II) 3/15/72 QUIT (II)
DESCRIPTION When f
_l_a
_g_ is 0, this call disables quit signals
from the typewriter (ASCII FS). When f _l
_a_g
_ is
non-zero, quits are re-enabled, and cause execu-
tion to cease and a core image to be produced.
DIAGNOSTICS --
BUGS --
- 1 -
READ (II) 3/15/72 READ (II)
Bu
_ _f
_f_e
_r_ is the location of n _b
_y_t
_e_s
_ contiguous bytes
into which the input will be placed. It is not
guaranteed that all n _b
_y_t
_e_s
_ bytes will be read;
for example if the file refers to a typewriter at
most one line will be returned. In any event the
number of characters read is returned in r0.
BUGS --
- 1 -
RELE (II) 3/15/72 RELE (II)
SEE ALSO --
DIAGNOSTICS --
BUGS --
- 1 -
SEEK (II) 3/15/72 SEEK (II)
if p
_t_r
_n_a
_m_e
_ is 0, the pointer is set to o
_f_f
_s_e
_t_.
if p
_t_r
_n_a
_m_e
_ is 1, the pointer is set to its
current location plus o _f
_f_s
_e_t
_.
if p
_t_r
_n_a
_m_e
_ is 2, the pointer is set to the
size of the file plus o _f
_f_s
_e_t
_.
SEE ALSO --
- 1 -
SETUID (II) 3/15/72 SETUID (II)
BUGS --
- 1 -
SLEEP (II) 9/4/72 SLEEP (II)
SEE ALSO --
DIAGNOSTICS --
- 1 -
STAT (II) 3/15/72 STAT (II)
DESCRIPTION na
_ _m
_e_ points to a null-terminated string naming a
file; b _u
_f_ is the address of a 34(10) byte buffer
into which information is placed concerning the
file. It is unnecessary to have any permissions
at all with respect to the file, but all directo-
ries leading to the file must be readable.
After s
_t_a
_t_, b
_u_f
_ has the following format:
buf, +1 i-number
+2,+3 flags (see below)
+4 number of links
+5 user ID of owner
+6,+7 size in bytes
+8,+9 first indirect block or contents block
+22,+23 eighth indirect block or contents block
+24,+25,+26,+27 creation time
+28,+29,+30,+31 modification time
+32,+33 unused
BUGS --
- 1 -
STIME (II) 3/15/72 STIME (II)
DESCRIPTION st
_ _i
_m_e
_ sets the system’s idea of the time and
date. Only the super-user may use this call.
BUGS --
- 1 -
STTY (II) 6/12/72 STTY (II)
DESCRIPTION st
_ _t
_y_ sets mode bits for a typewriter whose file
descriptor is passed in r0. First, the system
delays until the typewriter is quiescent. Then,
the argument d _c
_r_s
_r_ is placed into the typewri-
ter’s receiver control and status register, and
_c
d _t
_s_r
_ is placed in the transmitter control and
status register. The DC-11 manual must be con-
sulted for the format of these words. For the
purpose of this call, the most important ro ^le of
these arguments is to adjust to the speed of the
typewriter.
The m
_o_d
_e_ argument contains several bits which de-
termine the system’s treatment of the typewriter:
- 1 -
STTY (II) 6/12/72 STTY (II)
- 2 -
SYNC (II) 6/12/72 SYNC (II)
DESCRIPTION sy
_ _n
_c_ causes the super block for all file systems
to be written out. It is only necessary on sys-
tems in which this writing may be delayed for a
long time, i.e., those which incorporate hardware
protection facilities.
SEE ALSO --
DIAGNOSTICS --
BUGS --
- 1 -
TIME (II) 3/15/72 TIME (II)
DESCRIPTION ti
_ _m
_e_ returns the time since [Link], Jan. 1,
1972, measured in sixtieths of a second. The
high order word is in the r0 register and the low
order is in the r1.
DIAGNOSTICS --
- 1 -
TIMES(II) 2/10/73 TIMES(II)
DESCRIPTION ti
_ _m
_e_s
_ returns time-accounting information for the
system as a whole, for the current process, and
for the terminated child processes of the current
process. All the times are 2-word (32-bit) num-
bers, and the unit of measurement is 1/60 second.
buffer:
system: .=.+4 / absolute time
.=.+4 / total system time
.=.+4 / total swap time
.=.+4 / other I/O wait time
.=.+4 / idle time
.=.+4 / total user time
child: .=.+24.
FILES --
DIAGNOSTICS --
BUGS --
- 1 -
UMOUNT (II) 3/15/72 UMOUNT (II)
DESCRIPTION um
_ _o
_u_n
_t_ announces to the system that special file
_p
s _e
_c_i
_a_l
_ is no longer to contain a removable file
system. The file associated with the special
file reverts to its ordinary interpretation (see
_o
m _u
_n_t
_).
- 1 -
UNLINK (II) 3/15/72 UNLINK (II)
DESCRIPTION Na
_ _m
_e_ points to a null-terminated string. U
_n_l
_i_n
_k_
removes the entry for the file pointed to by n _a
_m_e_
from its directory. If this entry was the last
link to the file, the contents of the file are
freed and the file is destroyed. If, however,
the file was open in any process, the actual de-
struction is delayed until it is closed, even
though the directory entry has disappeared.
BUGS --
- 1 -
WAIT (II) 9/4/72 WAIT (II)
DESCRIPTION wa
_ _i
_t_ causes its caller to delay until one of its
child processes terminates. If any child has
died since the last w _a
_i_t
_, return is immediate; if
there are no children, return is immediate with
the error bit set. In the case of several chil-
dren several w _a
_i_t
_s are needed to learn of all the
deaths.
0 exit
1 bus error
2 illegal instruction
3 trace trap
4 IOT trap
5 power fail trap
6 EMT trap
7 bad system call
8 PIR interrupt
9 floating point exception
10 memory violation
11 quit
12 interrupt
13 kill (see kill(II))
14 User I/O (not currently possible)
+16 core image produced
- 1 -
WRITE (II) 3/15/72 WRITE (II)
bu
_ _f
_f_e
_r_ is the address of n
_b_y
_t_e
_s_ contiguous bytes
which are written on the output file. The number
of characters actually written is returned in r0.
It should be regarded as an error if this is not
the same as requested.
BUGS --
- 1 -
ATAN, ATAN2 (III) 1/15/73 ATAN, ATAN2 (III)
SEE ALSO --
BUGS --
- 1 -
ATOF (III) 1/15/73 ATOF (III)
DESCRIPTION at
_ _o
_f_ will convert an ascii stream to a floating
number returned in fr0.
The subroutine s
_u_b
_r_ must not disturb any regis-
ters.
- 1 -
ATOI (III) 1/15/73 ATOI (III)
DESCRIPTION at
_ _o
_i_ will convert an ascii stream to a binary
number returned in r1.
The subroutine s
_u_b
_r_ must not disturb any regis-
ters.
SEE ALSO --
- 1 -
COMPAR (III) 1/15/73 COMPAR (III)
cmpb (r0),(r4)
suffices.
DIAGNOSTICS --
- 1 -
CRYPT (III) 1/15/73 CRYPT (III)
BUGS --
- 1 -
CTIME (III) 1/15/73 CTIME (III)
Oct 9 [Link]\0
DIAGNOSTICS --
- 1 -
DDSPUT, DDSINIT (III) 1/15/73 DDSPUT, DDSINIT (III)
(character in r0)
jsr pc,ddsput
- 1 -
DDSPUT, DDSINIT (III) 1/15/73 DDSPUT, DDSINIT (III)
DIAGNOSTICS --
BUGS yes
- 2 -
ECVT, FCVT (III) 1/15/73 ECVT, FCVT (III)
or
jsr pc,fcvt
DIAGNOSTICS --
BUGS --
- 1 -
EXP (III) 1/15/73 EXP (III)
SEE ALSO --
BUGS ---
- 1 -
FTOA (III) 1/15/73 FTOA (III)
DESCRIPTION ft
_ _o
_a_ will convert the floating point number in
fr0 into ascii in the form
[-][Link]*
[-][Link]
_[-]dd*.
The subroutine s
_u_b
_r_ must not disturb any regis-
ters.
DIAGNOSTICS --
BUGS --
- 1 -
FTOO (III) 1/15/73 FTOO (III)
000000;000000;000000;000000
The subroutine s
_u_b
_r_ must not disturb any regis-
ters.
SEE ALSO --
DIAGNOSTICS --
BUGS --
- 1 -
CONNECT, GERTS (III) 3/15/72 CONNECT, GERTS (III)
DIAGNOSTICS --
BUGS --
- 1 -
GETC, GETW, FOPEN (III) 3/15/72 GETC, GETW, FOPEN (III)
fo
_ _p
_e_n
_ may be called initially to open the file.
On return, the error bit (c-bit) is set if the
open failed. If f _o
_p_e
_n_ is never called, g
_e_t
_ will
read from the standard input file.
ge
_ _t
_c_ returns the next byte from the file in r0.
The error bit is set on end of file or a read er-
ror.
ge
_ _t
_w_ returns the next word in r0. g
_e_t
_c_ and g
_e_t
_w_
may be used alternately; there are no odd/even
problems.
io
_ _b
_u_f
_ must be provided by the user; it must be on
a word boundary.
BUGS --
- 1 -
HYPOT (III) 6/12/72 HYPOT (III)
BUGS --
- 1 -
ITOA (III) 3/15/72 ITOA (III)
DESCRIPTION it
_ _o
_a_ will convert the number in r0 into ascii
decimal preceded by a - sign if appropriate. For
each character generated by itoa, the subroutine
_u
s _b
_r_ (supplied by the caller) is called on regis-
ter r5 with the character in r0.
The subroutine s
_u_b
_r_ must not disturb any regis-
ters.
SEE ALSO --
DIAGNOSTICS --
BUGS --
- 1 -
LOG (III) 3/15/72 LOG (III)
SEE ALSO --
BUGS --
- 1 -
MESG (III) 3/15/72 MESG (III)
DESCRIPTION me
_ _s
_g_ writes the string immediately following its
call onto the standard output file. The string
must be terminated by an ASCII NULL byte.
SEE ALSO --
DIAGNOSTICS --
BUGS --
- 1 -
NLIST (III) 6/12/72 NLIST (III)
DESCRIPTION nl
_ _i
_s_t
_ will examine the name list in the given as-
sembler output file and selectively extract a
list of values. The name list consists of a list
of 8-character names (null padded) each followed
by two words. The list is terminated with a ze-
ro. Each name is looked up in the name list of
the file. If the name is found, the type and
value of the name are placed in the two words
following the name. If the name is not found,
the type entry is set to -1.
BUGS --
- 1 -
POW (III) 1/15/73 POW (III)
BUGS --
- 1 -
PTIME (III) 3/15/72 PTIME (III)
DESCRIPTION _t
p _i
_m_e
_ prints the date and time in the form
DIAGNOSTICS --
- 1 -
PUTC,PUTW,FCREAT,FLUSH (III) 6/12/72 PUTC,PUTW,FCREAT,FLUSH (III)
DESCRIPTION fc
_ _r
_e_a
_t_ creates the given file (mode 17) and sets
up the buffer i _o
_b_u
_f_ (size 518(10) bytes); p
_u_t
_c_
and p _u_t
_w_ write a byte or word respectively onto
the file; f _l
_u_s
_h_ forces the contents of the buffer
to be written, but does not close the file. The
format of the buffer is:
fc
_ _r
_e_a
_t_ sets the error bit (c-bit) if the file
creation failed; none of the other routines re-
turn error information.
BUGS --
- 1 -
QSORT (III) 6/12/72 QSORT (III)
DESCRIPTION qs
_ _o
_r_t
_ is an implementation of the quicker sort
algorithm. It is designed to sort equal length
elements. Registers r1 and r2 delimit the region
of core containing the array of byte strings to
be sorted: r1 points to the start of the first
string, r2 to the first location above the last
string. Register r3 contains the length of each
string. r2-r1 should be a multiple of r3. On
return, r0, r1, r2, r3, r4 are destroyed.
DIAGNOSTICS --
- 1 -
RAND (III) 1/15/73 RAND (III)
SEE ALSO --
DIAGNOSTICS --
BUGS --
- 1 -
SALLOC (III) 6/15/72 SALLOC (III)
jsr pc,wc
jsr pc,release
jsr pc,lookchar
(character in r0)
jsr pc,getchar
(character in r0)
jsr pc,backspace
(character in r0)
jsr pc,lookword
(word in r0)
jsr pc,getword
(word in r0)
jsr pc,backword
(word in r0)
jsr pc,length
(length in r0)
jsr pc,position
(position in r0)
- 1 -
SALLOC (III) 6/15/72 SALLOC (III)
jsr pc,rewind
jsr pc,create
jsr pc,fsfile
jsr pc,zero
__
a l_
l_o_
c_a_
t_e obtains a string of the requested size
and returns a pointer to its header in r1.
_e
r _l
_e_a
_s_e
_ releases a string back to free storage.
pu
_ _t
_c_h
_a_r
_ and p
_u_t
_w_o
_r_d
_ write a byte or word respec-
tively into the string and advance the write
pointer.
__
l o_
o_k_
c_h_
a_r and _
l_o_
o_k_
w_o_
r_d read a byte or word respec-
tively from the string but do not advance the
read pointer.
ge
_ _t
_c_h
_a_r
_ and g
_e_t
_w_o
_r_d
_ read a byte or word respec-
tively from the string and advance the read
pointer.
al
_ _t
_e_r
_c_h
_a_r
_ and a
_l_t
_e_r
_w_o
_r_d
_ write a byte or word re-
spectively into the string where the read pointer
is pointing and advance the read pointer.
ba
_ _c
_k_s
_p_a
_c_e
_ and b
_a_c
_k_w
_o_r
_d_ read the last byte or word
written and decrement the write pointer.
- 2 -
SALLOC (III) 6/15/72 SALLOC (III)
se
_ _e
_k_c
_h_a
_r_ moves the read pointer to the offset
specified in r0.
le
_ _n
_g_t
_h_ returns the current length of the string
(beginning pointer to write pointer) in r0.
po
_ _s
_i_t
_i_o
_n_ returns the current offset of the read
pointer in r0.
re
_ _w
_i_n
_d_ moves the read pointer to the beginning of
the string.
cr
_ _e
_a_t
_e_ returns the read and write pointers to the
beginning of the string.
fs
_ _f
_i_l
_e_ moves the read pointer to the current po-
sition of the write pointer.
ze
_ _r
_o_ zeros the whole string and sets the write
pointer to the beginning of the string.
co
_ _p
_y_ copies the string whose header pointer is in
r0 to the string whose header pointer is in r1.
Care should be taken in using the copy instruc-
tion since r1 will be changed if the contents of
the source string is bigger than the destination
string.
wc
_ _ forces the contents of the internal buffers
and the header blocks to be written on disc.
SEE ALSO --
BUGS --
- 3 -
SIN, COS (III) 3/15/72 SIN, COS (III)
SEE ALSO --
BUGS --
- 1 -
SQRT (III) 3/15/72 SQRT (III)
SEE ALSO --
BUGS --
- 1 -
SWITCH (III) 3/15/72 SWITCH (III)
DESCRIPTION sw
_ _i
_t_c
_h_ compares the value of r0 against each of
the vali; if a match is found, control is trans-
ferred to the corresponding labi (after popping
the stack once). If no match has been found by
the time a null labi occurs, s _w
_i_t
_c_h
_ returns.
SEE ALSO --
DIAGNOSTICS --
BUGS --
- 1 -
TTYN (III) 1/15/73 TTYN (III)
DIAGNOSTICS --
BUGS --
- 1 -
DC (IV) 6/12/72 DC (IV)
DESCRIPTION
The special files /dev/tty0, /dev/tty1, ... refer to the
DC11 asynchronous communications interfaces. At the mo-
ment there are ten of them, but the number is subject to
change.
- 1 -
DC (IV) 6/12/72 DC (IV)
- 2 -
DC (IV) 6/12/72 DC (IV)
- 3 -
DN (IV) 3/15/72 DN (IV)
DESCRIPTION dn
_ _?
_ is a write-only file. Bytes written on d
_n_?
_
must be ASCII as follows:
BUGS --
- 1 -
DP (IV) 3/15/72 DP (IV)
DESCRIPTION dp
_ _?
_ is a 201 data-phone interface file. r _e
_a_d
_ and
_r
w _i
_t_e
_ calls to d
_p_?
_ are limited to a maximum of
400 bytes. Each write call is sent as a single
record. Seven bits from each byte are written
along with an eighth odd parity bit. The sync
must be user supplied. Each read call returns
characters received from a single record. Seven
bits are returned unaltered; the eighth bit is
set if the byte was not received in odd parity.
A 20 second time out is set and a zero byte
record is returned if nothing is received in that
time.
BUGS The d
_p_ file is GCOS oriented. It should be more
flexible.
- 1 -
KL (IV) 3/15/72 KL (IV)
DESCRIPTION tt
_ _y
_ (as distinct from t
_t_y
_?_) refers to the console
typewriter hard-wired to the PDP-11 via a KL-11
interface.
FILES /dev/tty
/dev/tty8 synonym for /dev/tty
BUGS --
- 1 -
MEM (IV) 3/15/72 MEM (IV)
DESCRIPTION me
_ _m
_ is a special file that is an image of the
core memory of the computer. It may be used, for
example, to examine, and even to patch the system
using the debugger.
Me
_ _m
_ is a byte-oriented file; its bytes are num-
bered 0 to 65,535.
FILES /dev/mem
SEE ALSO --
BUGS --
- 1 -
PC (IV) 3/15/72 PC (IV)
DESCRIPTION pp
_ _t
_ refers to the PC-11 paper tape reader or
punch, depending on whether it is read or writ-
ten.
When p
_p_t
_ is opened for writing, a 100-character
leader is punched. Thereafter each byte written
is punched on the tape. No editing of the char-
acters is performed. When the file is closed, a
100-character trailer is punched.
When p
_p_t
_ is opened for reading, the process waits
until tape is placed in the reader and the reader
is on-line. Then requests to read cause the
characters read to be passed back to the program,
again without any editing. This means that sev-
eral null leader characters will usually appear
at the beginning of the file. Likewise several
nulls are likely to appear at the end. End-of-
file is generated when the tape runs out.
FILES /dev/ppt
SEE ALSO --
BUGS --
- 1 -
RF (IV) 3/15/72 RF (IV)
FILES /dev/rf0
- 1 -
RK (IV) 3/15/72 RK (IV)
DESCRIPTION rk
_ _?
_ refers to an entire RK03 disk as a single se-
quentially-addressed file. Its 256-word blocks
are numbered 0 to 4871. Like the RF disk and the
tape files, its addressing is block-oriented.
Consult the rf(IV) section.
- 1 -
TC (IV) 3/15/72 TC (IV)
FILES /dev/tap?
- 1 -
TM (IV) 6/12/72 TM (IV)
DESCRIPTION mt
_ _?
_ is the DEC TU10/TM11 magtape. When opened
for reading or writing, the magtape is rewound.
A tape consists of a series of 512 byte records
terminated by an end-of-file. Reading less than
512 bytes causes the rest of a record to be ig-
nored. Writing less than a record causes null
padding to 512 bytes. When the magtape is closed
after writing, an end-of-file is written.
- 1 -
VT (IV) 2/11/73 VT (IV)
DESCRIPTION
The file v
_t_0
_ provides the interface to a PDP 11/20 which
runs both a VT01A-controlled Tektronix 611 storage dis-
play, and a Federal Screw Works (Vocal Interface Divi-
sion) voice synthesizer. The inter-computer interface is
a pair of DR-11C word interfaces.
erase (1)
The screen is erased. This action may be de-
layed, as explained below, until a pushbutton
is depressed.
- 1 -
VT (IV) 2/11/73 VT (IV)
- 2 -
VT (IV) 2/11/73 VT (IV)
FILES /dev/vt0
- 3 -
[Link] (V) 3/15/72 [Link] (V)
DESCRIPTION
_.
a _o
_u_t
_ is the output file of the assembler a _s
_ and the link
editor l _d
_. In both cases, a_.
_o_u
_t_ may be executed provided
there were no errors and no unresolved external refer-
ences.
The sizes of each segment are in bytes but are even. The
size of the header is not included in any of the other
sizes.
00 undefined symbol
- 1 -
[Link] (V) 3/15/72 [Link] (V)
01 absolute symbol
02 text segment symbol
03 data segment symbol
04 bss segment symbol
40 undefined external (.globl) symbol
41 absolute external symbol
42 text segment external symbol
43 data segment external symbol
44 bss segment external symbol
Values other than those given above may occur if the user
has defined some of his own instructions.
- 2 -
[Link] (V) 3/15/72 [Link] (V)
SEE ALSO _s
a _, _
l_d_
, _
s_t_
r_i_
p_, _
n_m_
, _
u_n_
(_I_
)
- 3 -
ARCHIVE (V) 3/15/72 ARCHIVE (V)
A file produced by a
_r_ has a "magic number" at the
start, followed by the constituent files, each
preceded by a file header. The magic number is
177555(8) (it was chosen to be unlikely to occur
anywhere else). The header of each file is 16
bytes long:
0-7
file name, null padded on the right
8-11
Modification time of the file
12
User ID of file owner
13
file mode
14-15
file size
SEE ALSO _r
a _, l
_d_
- 1 -
CORE (V) 2/7/73 CORE (V)
- 1 -
DIRECTORY (V) 3/15/72 DIRECTORY (V)
- 1 -
FILE SYSTEM (V) 3/15/72 FILE SYSTEM (V)
DESCRIPTION
Every file system storage volume (e.g. RF disk, RK disk,
DECtape reel) has a common format for certain vital in-
formation.
- 1 -
FILE SYSTEM (V) 3/15/72 FILE SYSTEM (V)
Byte number n
_ of a file is accessed as follows: n_ is di-
vided by 512 to find its logical block number (say b_) in
the file. If the file is small (flag 010000 is 0), then
_ must be less than 8, and the physical block number cor-
b
responding to b_ is the b
_th entry in the address portion
of the i-node.
For block b
_ in a file to exist, it is not necessary that
all blocks less than b
_ exist. A zero block number either
in the address words of the i-node or in an indirect
block indicates that the corresponding block has never
been allocated. Such a missing block reads as if it con-
tained all zero words.
- 2 -
FILE SYSTEM (V) 3/15/72 FILE SYSTEM (V)
- 3 -
PASSWD (V) 12/11/72 PASSWD (V)
DESCRIPTION pa
_ _s
_s_w
_d_ contains for each user the following in-
formation:
- 1 -
TAP (V) 6/12/72 TAP (V)
- 1 -
UTMP (V) 3/15/72 UTMP (V)
- 1 -
WTMP (V) 3/15/72 WTMP (V)
- 1 -
BC (VI) 6/12/72 BC (VI)
NAME bc -- B interpreter
SYNOPSIS _c
b _ [ -
_c_ ] sfile1.
_b_ ... ofile1 ...
DESCRIPTION bc
_ _ is the UNIX B interpreter. It accepts three
types of arguments:
- 1 -
BJ (VI) 3/15/72 BJ (VI)
SYNOPSIS /usr/games/bj
DESCRIPTION
_j
b _ is a serious attempt at simulating the dealer in the
game of black jack (or twenty-one) as might be found in
Reno. The following rules apply:
- 1 -
BJ (VI) 3/15/72 BJ (VI)
- 2 -
PTX (VI) 3/15/72 PTX (VI)
SYNOPSIS _t
p _x
_ input output
DESCRIPTION pt
_ _x
_ generates a permuted index from file i_n
_p_u
_t_ on
file o_u
_t_p
_u_t
_. It has three phases: the first does
the permutation, generating one line for each
keyword in an input line. The keyword is rotated
to the front. The permuted file is then sorted.
Finally the sorted lines are rotated so the key-
word comes at the middle of the page.
in
_ _p
_u_t
_ should be edited to remove useless lines.
The following words are suppressed: "a", "and",
"as", "is", "for", "of", "on", "or", "the", "to",
"up".
FILES --
DIAGNOSTICS some
BUGS --
- 1 -
YACC (VI) 1/20/73 YACC (VI)
SYNOPSIS /_
_ c_
r_p_
/_s_
c_j_
/_y_
a_c_
c [ <grammar ]
- 1 -
ASCII (VII) 6/12/72 ASCII (VII)
SYNOPSIS _a
c _t
_ /
_u_s
_r_/
_p_u
_b_/
_a_s
_c_i
_i_
DESCRIPTION as
_ _c
_i_i
_ is a map of the ASCII character set, to be
printed as needed. It contains:
- 1 -
DPD (VII) 3/15/72 DPD (VII)
SYNOPSIS _e
/ _t
_c_/
_d_p
_d_
DESCRIPTION dp
_ _d
_ is the 201 data phone daemon. It is designed
to submit jobs to the Honeywell 6070 computer via
the gerts interface.
dp
_ _d
_ uses the directory /
_u_s
_r_/
_d_p
_d_. The file l _o
_c_k
_
in that directory is used to prevent two daemons
from becoming active. After the daemon has suc-
cessfully set the lock, it forks and the main
path exits, thus spawning the daemon. / _u
_s_r
_/_d
_p_d
_
is scanned for any file beginning with d _f
_. Each
such file is submitted as a job. Each line of a
job file must begin with a key character to spec-
ify what to do with the remainder of the line
F is the same as B
_ _ except a form feed is
prepended to the file.
DIAGNOSTICS --
- 1 -
DPD (VII) 3/15/72 DPD (VII)
BUGS --
- 2 -
12/11/72 GETTY (VII)
SYNOPSIS /etc/getty
DESCRIPTION
_e
g _t
_t_y
_ is invoked by init (VII) immediately after a type-
writer is opened following a dial-in. The user’s login
name is read and the login(I) command is called with this
name as an argument. While reading this name g _e
_t_t
_y_ at-
tempts to adapt the system to the speed and type of ter-
minal being used.
ge
_ _t
_t_y
_ initially sets the speed of the interface to 150
baud, specifies that raw mode is to be used (break on ev-
ery character), that echo is to be suppressed, and either
parity allowed. It types the "login:" message (which in-
cludes the characters which put the 37 Teletype terminal
into full-duplex and unlock its keyboard). Then the us-
er’s name is read, a character at a time. If a null
character is received, it is assumed to be the result of
the user pushing the "break" ("interrupt") key. The
speed is then changed to 300 baud and the "login:" is
typed again, this time with the appropriate sequence
which puts a GE TermiNet 300 into full-duplex. This se-
quence is acceptable to other 300 baud terminals also.
If a subsequent null character is received, the speed is
changed again. The general approach is to cycle through
a set of speeds in response to null characters caused by
breaks. The sequence at this installation is 150, 300,
and 134.5 baud.
FILES --
- 1 -
12/11/72 GETTY (VII)
- 2 -
GLOB (VII) 6/15/72 GLOB (VII)
SYNOPSIS /etc/glob
DESCRIPTION gl
_ _o
_b_ is used to expand arguments to the shell
containing "*", ’[’, or "?". It is passed the
argument list containing the metacharacters; g _l
_o_b
_
expands the list and calls the command itself.
The actions of g _l
_o_b
_ are detailed in the Shell
writeup.
gl
_ _o
_b_ gives the "No match" diagnostic only if no
arguments at all result. This is never the case
if there is any argument without a metacharacter.
- 1 -
GREEK (VII) 10/31/72 GREEK (VII)
SYNOPSIS _a
c _t
_ /
_u_s
_r_/
_p_u
_b_/
_g_r
_e_e
_k_
DESCRIPTION gr
_ _e
_e_k
_ gives the mapping from ascii to the "shift
out" graphics in effect between SO and SI on mod-
el 37 teletypes with a 128-character type box.
It contains:
FILES --
DIAGNOSTICS --
BUGS --
- 1 -
INIT (VII) 6/15/72 INIT (VII)
SYNOPSIS /etc/init
DESCRIPTION
_n
i _i
_t_ is invoked inside UNIX as the last step in the boot
procedure. Generally its role is to create a process for
each typewriter on which a user may log in.
First, i_n
_i_t
_ checks to see if the console switches contain
173030. (This number is likely to vary between systems.)
If so, the console typewriter t _t
_y_ is opened for reading
and writing and the shell is invoked immediately. This
feature is used to bring up a test system, or one which
does not contain DC-11 communications interfaces. When
the system is brought up in this way, the g _e
_t_t
_y_ and l
_o_g
_i_n
_
routines mentioned below and described elsewhere are not
needed.
Otherwise, i _n
_i_t
_ does some housekeeping: the mode of each
DECtape file is changed to 17 (in case the system crashed
during a t_a
_p_ command); directory /usr is mounted on the
RK0 disk; directory /sys is mounted on the RK1 disk. Al-
so a data-phone daemon is spawned to restart any jobs be-
ing sent.
Then i
_n_i
_t_ forks several times to create a process for
each typewriter mentioned in an internal table. Each of
these processes opens the appropriate typewriter for
reading and writing. These channels thus receive file
descriptors 0 and 1, the standard input and output.
Opening the typewriter will usually involve a delay,
since the o _p
_e_n
_ is not completed until someone is dialled
in (and carrier established) on the channel. Then the
process executes the program /e _t
_c_/g
_e_t
_t_y
_ (q.v.). g _e
_t_t
_y_
will read the user’s name and invoke l _o
_g_i
_n_ (q.v.) to log
in the user and execute the shell.
- 1 -
INIT (VII) 6/15/72 INIT (VII)
- 2 -
MSH (VII) 6/15/72 MSH (VII)
SYNOPSIS /etc/msh
DESCRIPTION ms
_ _h
_ is a heavily simplified version of the Shell.
It reads one line from the standard input file,
interprets it as a command, and calls the com-
mand.
FILES --
DIAGNOSTICS "?"
BUGS --
- 1 -
TABS (VII) 6/15/72 TABS (VII)
FILES --
SEE ALSO --
DIAGNOSTICS --
BUGS --
- 1 -
VSP (VII) 2/2/73 VSP (VII)
DESCRIPTION vs
_ _p
_ contains a list of phonemes understood by the
voice synthesizer on device v_t
_. Phonemes are
usually written in the form
- 1 -
20BOOT (VIII) 1/25/73 20BOOT (VIII)
SYNOPSIS _0
2 _b
_o_o
_t_ [ x
_ ]
FILES /dev/vt0;
/sys/mdec/20.o (11/20 program)
DIAGNOSTICS --
- 1 -
ACCT (VIII) 1/20/73 ACCT (VIII)
SYNOPSIS _c
a _c
_t_ [ -
_w_ wtmp ] [ -
_p_ ] [ -
_d_ ] people
DESCRIPTION ac
_ _c
_t_ produces a printout giving connect time for
each user who has logged in during the life of
the current w _t_m
_p_ file. A total is also produced.
_w
- _ is used to specify an alternate wtmp file. - _p
_
prints individual totals; without this option,
only totals are printed. - _d
_ causes a printout
for each midnight to midnight period. The p _e
_o_p
_l_e
_
argument will limit the printout to only the
specified login names. If no wtmp file is given,
_u
/ _s
_r_/
_a_d
_m_/
_w_t
_m_p
_ is used.
FILES /usr/adm/wtmp
BUGS --
- 1 -
BOOT PROCEDURES (VIII) 2/6/73 BOOT PROCEDURES (VIII)
DESCRIPTION
On the RF disk, the highest 16K words are reserved for
stand-alone programs. These 16K words are allocated as
follows:
bos (1K)
Warm UNIX (7K)
Cold UNIX (8K)
The program b
_o_s
_ (Bootstrap Operating System) examines the
console switches and executes one of several internal
programs depending on the setting. The following set-
tings are currently recognized:
??? Will read Warm UNIX from the RF into core loca-
tion 0 and transfer to 600.
- 1 -
BOOT PROCEDURES (VIII) 2/6/73 BOOT PROCEDURES (VIII)
- 2 -
BOOT PROCEDURES (VIII) 2/6/73 BOOT PROCEDURES (VIII)
/etc/init
/bin/chmod
/bin/date
/bin/login
/bin/ls
/bin/mkdir
/etc/mount
/bin/sh
/bin/tap
/bin/mt
_s
m _y
_s_ char file
b bos
_
_ Warm UNIX
u
_ Cold UNIX
1
DIAGNOSTICS --
- 3 -
CHECK (VIII) 1/20/73 CHECK (VIII)
SYNOPSIS _h
c _e
_c_k
_ [ filesystem [ blockno918 ... ] ]
DESCRIPTION ch
_ _e
_c_k
_ will examine a file system, build a bit map
of used blocks, and compare this bit map against
the bit map maintained on the file system. If
the file system is not specified, a check of all
of the normally mounted file systems is per-
formed. Output includes the number of files on
the file system, the number of these that are
’large’, the number of indirect blocks, the num-
ber of used blocks, and the number of free
blocks.
ch
_ _e
_c_k
_ works by examining the i-nodes on the file
system and is entirely independent of its direc-
tory hierarchy. The file system may be, but need
not be, mounted.
- 1 -
CHK (VIII) 1/20/73 CHK (VIII)
SYNOPSIS chk
FILES /dev/[fkp]*
- 1 -
CLRI (VIII) 1/20/73 CLRI (VIII)
DESCRIPTION cl
_ _r
_i_ writes zeros on the 32 bytes occupied by the
i-node numbered _ i_
-_n_
u_m_
b_e_
r_. If the _
f_i_
l_e _
s_y_
s_t_
e_m ar-
gument is given, the i-node resides on the given
device, otherwise on a default file system. The
file system argument must be a special file name
referring to a device containing a file system.
After c
_l_r
_i_, any blocks in the affected file will
show up as "missing" in a c _h
_e__
ck_ of the file sys-
tem.
DIAGNOSTICS "error"
- 1 -
DCHECK (VIII) 1/20/73 DCHECK (VIII)
SYNOPSIS _c
d _h
_e_c
_k_ [ -
_l_ ] [ device ]
DESCRIPTION dc
_ _h
_e_c
_k_ builds an image of the directory hierarchy
of the specified device by reading all its direc-
tories (using physical I/O guided by the i-nodes
on the device). A list entry is made for each
file encountered. A second pass reads the i-
nodes and for each file compares the number of
links specified in its i-node with the number of
entries actually seen. All discrepancies are
noted.
The argument -
_l_ causes a complete listing of the
file names on the device in i-node order.
FILES /dev/rk?
- 1 -
DLI (VIII) 3/15/72 DLI (VIII)
DESCRIPTION dl
_ _i
_ will load a DEC binary paper tape into the
output file. The binary format paper tape is
read from the input file (/dev/ppt is default.)
FILES /dev/ppt
SEE ALSO --
DIAGNOSTICS "checksum"
BUGS --
- 1 -
ISTAT (VIII) 1/20/73 ISTAT (VIII)
SYNOPSIS _s
i _t
_a_t
_ [ filesystem ] inumber1 ...
DESCRIPTION is
_ _t
_a_t
_ gives information about one or more i-nodes
on the given file system or on /dev/rk0 if no
file system is given.
DIAGNOSTICS --
BUGS is
_ _t
_a_t
_ ignores any read error and pretends to give
status even if the file system is not physically
present.
- 1 -
KILL (VIII) 1/20/73 KILL (VIII)
SYNOPSIS _u
/ _s
_r_/
_a_d
_m_/
_k_i
_l_l
_ processnumber
DESCRIPTION After p
_s_ (q.v.) has given you the unique ID of a
process, you can terminate it by this command. A
core image is produced in the process’s working
directory.
FILES --
DIAGNOSTICS yes
- 1 -
MOUNT (VIII) 1/20/73 MOUNT (VIII)
SYNOPSIS _e
/ _t
_c_/
_m_o
_u_n
_t_ special file
DESCRIPTION mo
_ _u
_n_t
_ announces to the system that a removable
file system is present on the device correspond-
ing to special file s _p
_e_c
_i_a
_l_ (which must refer to
a disk or possibly DECtape). The f _i
_l_e
_ must exist
already; it becomes the name of the root of the
newly mounted file system.
FILES --
- 1 -
PS (VIII) 1/20/73 PS (VIII)
SYNOPSIS /usr/adm/ps [ -
_x_l
_t_ ]
DESCRIPTION
_s
p _ prints certain facts about active processes. The in-
formation is columnar and consists of:
Some caveats:
- 1 -
PS (VIII) 1/20/73 PS (VIII)
BUGS As described.
- 2 -
SALV (VIII) 1/20/73 SALV (VIII)
SYNOPSIS _e
/ _t
_c_/
_s_a
_l_v
_ filesystem [ -
_a_k
_f_s
_ ]
DESCRIPTION
_a
s _l
_v_ will place a given file system in a consistent state
with almost no loss of information. This is the first
step in putting things together after a bad crash. Salv
performs the following functions:
The "k", "f", and "s" options tell salv what magic num-
bers to use to generate the size of the free list and the
i-node map. "k" is default (RK disk); "f" is RF; "s" is
RK with swap space on it. If salv is to be used away
from the mother system its code should be cheked to veri-
fy the numbers.
FILES /dev/rk0
DIAGNOSTICS --
- 1 -
SALV (VIII) 1/20/73 SALV (VIII)
- 2 -
SU (VIII) 1/20/73 SU (VIII)
SYNOPSIS _u
s _
FILES --
BUGS --
- 1 -
SWTMP (VIII) 2/11/73 SWTMP (VIII)
SYNOPSIS _w
s _t
_m_p
_
- 1 -
TM (VIII) 3/15/72 TM (VIII)
SYNOPSIS _m
t _
DESCRIPTION tm
_ _ is used to provide timing information. Output
like the following is given:
DIAGNOSTICS --
BUGS --
- 1 -
UMOUNT (VIII) 1/20/73 UMOUNT (VIII)
SYNOPSIS _e
/ _t
_c_/
_u_m
_o_u
_n_t
_ special
DESCRIPTION um
_ _o
_u_n
_t_ announces to the system that the removable
file system previously mounted on special file
_p
s _e
_c_i
_a_l
_ is to be removed.
The user must take care not only that all I/O ac-
tivity on the file system has ceased, but that no
one has his current directory on it.
FILES --
DIAGNOSTICS "?"
- 1 -