Mini-Unix/usr/doc/new/hel2

.h0 "\na.\n+b User Access Control"
.sh LOGIN
Sign on as a new user.
.op
Verify password and establish user's 
individual and group (project) identity.
.op
Adapt to characteristics of terminal.
.op
Establish working directory.
.op
Announce presence of mail (from MAIL).
.op
Publish message of the day.
.op
Start command interpreter or other initial program.
.sh PASSWD
Change a password.
.op
User can change his own password.
.op
Passwords are kept encrypted for better security.
.h0 "\na.\n+b File Manipulation"
.sh CAT
Concatenate one or more files onto standard output.
Particularly used for unadorned printing, for
inserting data into a pipeline,
and for buffering output that comes in dribs and drabs.
.op
Usable as filter.
.sh CP
Copy one file to another.
Works on any file without distinction as to contents.
.sh PR
Print files with title, date, and page number on every page.
.op
Multicolumn output.
.op
Parallel column merge of several files.
.op
Usable as a filter.
.sh OPR
Off line print.
Spools arbitrary files to the line printer.
.op
Usable as a filter.
.sh SPLIT
Split a large file into more manageable pieces.
Occasionally necessary for editing (ED).
..
.sh ED
Interactive context editor.
Random access to all lines of a file.
.op
Find lines by number or pattern.
Patterns may include:
specified characters,
don't care characters,
choices among characters,
repetitions of these constructs,
beginning of line,
end of line.
.op
Add, delete, change, copy or move lines.
.op
Permute or split contents of a line.
.op
Replace one or all instances of a pattern within a line.
.op
Combine or split files.
.op
Escape to Shell (M\s8INI-\s10U\s8NIX\s10 command language) during editing.
.ne3
.op
Do any of above operations on
every pattern-selected line in a given range.
.sh Manual
Introductory manual for ED.
.sh STTY
Set up options for optimal control of a terminal.
In so far as they are deducible from the input, these
options are set automatically by LOGIN.
.op
Half vs. full duplex.
.op
Carriage return+line feed vs. newline.
.op
Interpretation of tabs.
.op
Parity.
.op
Mapping of upper case to lower.
.op
Raw vs. edited input.
.op
Delays for tabs, newlines and carriage returns.
.sh SUM
Sum the words of a file.
.h0 "\na.\n+b Manipulation of Directories and File Names"
.sh RM
Remove a file.
Only the name goes away if any other names are linked to the file.
.sh LN
\*(lqLink\*(rq another name (alias) to an existing file.
.sh MV
Move a file.
Used for renaming files or directories.
.sh CHMOD
Change permissions on one or more files.
Executable by files' owner.
.sh CHOWN
Change owner of one or more files.
.sh MKDIR
Make a new directory.
.sh RMDIR
Remove a directory.
.sh CHDIR
Change working directory.
.sh FIND
Prowl the directory
hierarchy finding
every file that meets
specified criteria.
.op
Find files that satisfy
one of these criteria:
.in +2
.nf
spelling of name matches a given pattern,
creation date in given range,
date of last use in given range,
given permissions,
given owner,
given special file characteristics,
boolean combinations of above.
.in -2
.fi
.op
Any directory may be considered to be the root.
.op
Perform specified command on each file found.
.sh DSW
Interactively step through a directory,
deleting or keeping files.
.h0 "\na.\n+b Running of Programs"
.sh SH
The Shell, or command language interpreter.
.op
Supply arguments to and run any executable program.
.op
Redirect standard input or standard output.
.op
Compose compound commands using these operators:
.in+2
`;' for sequential execution,
.br
`|' for sequential execution with output of one process `piped'
to the input of another,
.br
`&' for asynchronous operation,
.br
parentheses for grouping.
.in -2
.op
Perform `Shell programs', command scripts with
substitutable arguments.
.op
Construct argument lists from all file names
satisfying specified patterns.
.op
Collect command usage statistics.
.sh IF
Conditionally execute command
on basis of:
.op
String comparison.
.op
File accessibility.
.sh GOTO
Go to a label in a Shell program.
.sh WAIT
Wait for termination of asynchronously running processes.
.sh EXIT
Terminate a Shell program.
Useful with IF.
.sh ECHO
Print remainder of command line.
Useful for diagnostics or prompts in Shell programs,
or for inserting data into a pipeline.
.sh SLEEP
Suspend execution for a specified time.
.sh NOHUP
Run a command immune to hanging up the terminal.
.sh NICE
Run a command in low (or high) priority.
.sh KILL
Terminate named processes.
.sh CRON
Perform an action at specified times.
.op
Actions are arbitrary Shell (SH) programs.
.op
Times are
conjunctions of month, day of month, day of week, hour
and minute.
Ranges are specifiable for each.
.sh TEE
Pass data between processes and divert a copy into a file.
Used as a filter.
.h0 "\na.\n+b Status Inquiries"
.sh LS
List the names of one, several, or all files in one or more directories.
.op
Alphabetic or temporal sorting, up or down.
.op
Optional information:
size,
owner,
date last modified,
date last accessed,
permissions,
i-node number.
.sh FILE
Try to determine 
what kind of information is in a file by consulting
the file system index and by reading the file itself.
.sh DATE
Print today's date and time.
Has considerable knowledge
of calendric and horological peculiarities.
.op
May set M\s8INI-\s10U\s8NIX\s10's idea of date and time.
.sh DF
Report amount of free space on file system devices.
.sh DU
Print a summary of total space occupied by all files in a hierarchy.
.sh WHO
Tell who's on the system.
.op
List of presently logged in users,
ports and times on.
.op
Optional history of all logins and logouts.
.sh PS
Report on active processes.
.op
List your own or everybody's processes.
.op
Tell what commands are being executed.
.op
Optional status information:
state,
attached terminal,
what it's waiting for,
size.
.sh TTY
Print name of your terminal.
.sh PWD
Print name of your working directory.
.h0 "\na.\n+b Backup and Maintenance"
.sh MOUNT
Attach a device containing
a file system to
the tree of directories.
Protects against nonsense arrangements.
.sh UMOUNT
Remove the file system contained on a device
from the tree of directories.
Protects against removing a busy device.
.sh MKFS
Make a new file system on a device.
.sh MKNOD
Make an i-node (file system entry) for a special file.
Special files are
physical devices,
virtual devices, physical memory, etc.
.sh TP
Manage file archives on magnetic tape or DECtape.
.op
Collect files into an archive.
.op
Update DECtape archive by date.
.op
Replace or delete DECtape files.
.op
Print table of contents.
.op
Retrieve from archive.
.sh DUMP
Dump the file system
stored on a specified device, selectively by date, or indiscriminately.
.sh RESTOR
Restore a dumped file system,
or selectively retrieve parts thereof.
.sh SU
Temporarily become the super user with all the rights and privileges
thereof.
Requires a password.
.sh DCHECK
.sh ICHECK
.sh NCHECK
.sp -2
Check consistency of file system.
.op
Print gross statistics:
number of files,
number of directories,
number of special files,
space used,
space free.
.op
Report duplicate use of space.
.op
Retrieve lost space.
.op
Report inaccessible files.
.op
Check consistency of directories.
.op
List names of all files.
.sh CLRI
Peremptorily expunge a file and its space from a file system.
Used to repair damaged file systems.
.sh SYNC
Force all outstanding I/O on the system to completion.
Used to shut down gracefully.
.h0 "\na.\n+b Accounting"
.in0
.sp
These routines use floating point.
The timing information on which the reports are based can be
manually cleared or shut off completely.
.sh AC
Publish cumulative connect time report.
.op
Connect time by user or by day.
.op
For all users or for selected users.
.sh SA
Publish Shell accounting
report.
Gives usage information on each command executed.
.op
Number of times used.
.op
Total system time, user time and elapsed time.
.op
Optional averages and percentages.
.op
Sorting on various fields.
.h0 "\na.\n+b Inter-user Communication"
.sh MAIL
Mail a message to one or more users.
Also used to read and dispose of incoming mail.
The presence of mail is announced by LOGIN.
.sh WRITE
Establish direct terminal communication with another user.
.sh WALL
Write to all users.
.sh MESG
Inhibit receipt of messages from WRITE and WALL.