Unix For Beginning Users
Unix For Beginning Users
Developed by:
A. Audience
B. Course Objectives
QUIT
(Ret) Backspace
Tab Ctrl-F6
Print (Shift-F7) Go to DOS (1)
⁄ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒø
≥ ≥
≥ ≥
≥ Multimax, Nanobus, and UMAX are trademarks of ≥
≥ Encore Computer Corporation ≥
≥ ≥
≥ ≥
≥ Annex is a trademark of XYLOGICS, Inc ≥
≥ ≥
≥ ≥
≥ UNIX and Teletype are registered trademarks of ≥
≥ AT&T Bell Laboratories ≥
≥ ≥
≥ ≥
≥ Ethernet is a trademark of Xerox Corporation ≥
≥ ≥
≥ ≥
≥ ≥
¿ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒŸ
The designers of UNIX used the following Maxims while writing the
new operating system.
Kernel
Shell
The shell is the utility that processes your requests. When you
type in a command at your terminal, the shell interprets the
command and calls the program that you want. The shell will
support multiple users, multiple tasks, and multiple interfaces
to itself. The shell uses standard syntax for all commands.
There are two popular shells currently available, the BourneShell
(standard System V UNIX) and the CShell (BSD UNIX). Because
separate users can use different shells at the same time, the
system can appear different to different users. There is another
shell known as the KornShell (named after its designer), which is
popular with programmers. This ability to provide a customized
user interface is one of the most powerful features of UNIX.
/
(root)
≥
⁄ƒƒƒƒƒƒƒ¬ƒƒƒƒƒƒƒ¬ƒƒƒƒƒƒƒ¬ƒƒ¡ƒƒƒƒ¬ƒƒƒƒƒƒ¬ƒƒƒƒƒƒø
≥ ≥ ≥ ≥ ≥ ≥ ≥
bin dev etc lib tmp usr users
For example:
/
≥
⁄ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ≈ƒƒƒƒƒƒƒƒƒƒƒƒƒø
≥ ≥ ≥
bin users dev
≥
⁄ƒƒƒƒƒƒƒƒƒƒƒƒƒ¡ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒø
≥ ≥
bsmith sjones
≥ ≥
⁄ƒƒƒƒƒ¡ƒƒƒƒø ⁄ƒƒƒƒƒƒƒƒƒƒ¡ƒƒƒ¬ƒƒƒƒƒƒƒƒƒƒø
≥ ≥ ≥ ≥ ≥
memos progs physics chem history
≥ ≥ ≥ ≥ ≥
⁄ƒƒ¡ƒƒø ⁄ƒƒ¡ƒƒƒø ⁄ƒƒ¡ƒƒƒø ⁄ƒƒ¡ƒƒø ⁄¡ƒƒø
≥ ≥ ≥ ≥ ≥ ≥ ≥ ≥ ≥ ≥
mfg eng c f77 mods calcs forms notes loc anc
The only exception is the root directory, which always uses the
symbol /. No other directory or file can use this symbol.
…ÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕª
∫ Command Format: command options arguments ∫
»ÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕº
.................................................................
. $ls -CF sjones .
.................................................................
Example:
.................................................................
. $diff memo1 memo2 .
.................................................................
This command will tell what lines must be changed in two files to
bring them into agreement.
Here is another example that doesn't fit the general syntax for
UNIX commands.
Example:
.................................................................
. $find . -atime +7 -print .
.................................................................
So, this command will give a listing of all files in your current
working directory that have been accessed in the past seven days.
Some commands have several options and/or arguments; while
others, like passwd and mail, are interactive and will prompt the
user for additional input.
1.5 Correcting Mistakes
Because the shell and most other utilities do not interpret the
command line (or other text) until you press the (Ret) key, you
can correct typing mistakes before you press (Ret). There are
two ways to correct typing mistakes. You can erase one character
at a time, or you can back up to the beginning of the command
line in one step. After you press (Ret), it is too late to make
a correction.
Example:
.................................................................
. $ls phajne#y .
.................................................................
You can delete an entire line you are entering any time before
you press (Ret) by pressing the kill key (@). When you press the
@ (kill key), the cursor moves down to the next line and all the
way to the left. The shell doesn't give you another prompt, but
it is as though the cursor is following a prompt. The operating
system does not remove the line with the mistake but instead
ignores it. Now enter the command (or text) again from the
start.
1.5.3 Aborting Program Execution
⁄ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒø
≥ WELCOME TO THE B.O.R. NETWORK P/S:B ≥
≥ SYSTEMS PRESENTLY AVAILABLE ARE: ≥
≥ ≥
≥ **SYSTEM** **NAME** ≥
≥ ≥
≥ VAX 8300'S VAX ≥
≥ CYBER/CDCNET F.E. CDC ≥
≥ ENCORE/UNIX MAX ≥
≥ OUT DIAL OD ≥
≥ ≥
≥ TO SELECT A SYSTEM, ENTER THE SYSTEM ≥
≥ NAME AND CARRIAGE RETURN AT NEXT ≥
≥ PROMPT. ≥
≥ ≥
≥ CHANNEL 08/061. ENTER RESOURCE MAX ≥
≥ ≥
¿ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒŸ
Sample Session:
⁄ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒø
≥ CONNECTED TO 06/011 ≥
¿ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒŸ
This indicates that you are connected to the port selector. Wait
two seconds, press (Ret) twice, and the annex prompt will appear
after a warning message.
Sample Session:
⁄ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒø
≥ ≥
≥ Annex Command Line Interpreter * Copyright 1988 Xylogics, Inc. ≥
≥ ≥
≥ ***WARNING***Unauthorized access to U.S. Government computers ≥
≥ is punishable by fine and/or imprisonment. ***WARNING*** ≥
≥ annex: ≥
¿ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒŸ
1.7 Logging on the Multimax
…ÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕª
∫ Command Format: rlogin <host> ∫
∫ ∫
∫ host - name of the Multimax ∫
»ÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕº
The Denver Multimaxes have been assigned the names domax0 and
domax1. The names stand for the Denver Office Multimax System 0
and 1. The domax0 is used for production of Bureau-wide
applications. The domax1 is used for training and application
development and it is the one to use for exercises associated
with this course.
Sample Session:
⁄ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒø
≥ annex:rlogin domax1 ≥
¿ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒŸ
or
⁄ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒø
≥ annex:r domax1 ≥
¿ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒŸ
When the Annex has opened communications with the selected host,
the following prompt will appear:
Sample Session:
⁄ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒø
≥ login: ≥
¿ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒŸ
To connect with the host, enter your login name at the prompt.
Your login name is assigned to you by the system administrator
and typically will be your first initial and last name, all one
word with no spaces. Only 8 characters are allowed for the
username so extra letters will be truncated.
Sample Session:
⁄ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒø
≥ login:rharding ≥
¿ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒŸ
Once the login name has been accepted, the next prompt will be
for the password. The following prompt will appear on the
screen.
Sample Session:
⁄ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒø
≥ Password: ≥
¿ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒŸ
Enter your password. For security reasons, the host will not
display your password as you type it.
Sample Session:
⁄ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒø
≥ Password: secret ≥
¿ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒŸ
Once you have entered the correct password. The login procedure
will continue and the following will appear on the monitor
screen.
Sample Session:
⁄ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒø
≥ UNIX System V Release ax.2.2o ns32332 ≥
≥ domax1 ≥
≥ Copyright (c) 1984 AT&T ≥
≥ All Rights Reserved ≥
≥ ***WARNING***Unauthorized access to/use of this U.S. Government ≥
≥ computer is punishable by fine and/or imprisonment. ***WARNING***≥
≥ $ ≥
¿ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒŸ
At the shell prompt $, you can logout of the Multimax using one
of the following methods:
Once you have entered the command to logout the following will
appear on the screen:
Sample Session:
⁄ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒø
≥ $exit ≥
≥ CLI: Connection closed. ≥
≥ annex: ≥
¿ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒŸ
Once you are back at the Annex prompt, you can establish another
connection or logout of the Annex.
1.9 Logging Off the Annex
When the Annex prompt (annex:) appears, you can enter the command
to logout of the Annex. The command to logout of the Annex is as
follows:
…ÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕª
∫ Command Format: hangup ∫
»ÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕº
If you don't type anything for 60 minutes, the Annex will log you
out of the system and display the following message:
Sample Session:
⁄ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒø
≥ *** Annex Port Reset Due to Inactivity Timeout *** ≥
≥ ≥
≥ Annex Command Line Interpreter ≥
≥ DISCONNECTED ≥
¿ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒŸ
When the hangup command has been entered, the following will
appear on the screen:
Sample Session:
⁄ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒø
≥ annex: hangup ≥
≥ ≥
≥ Resetting line and disconnecting. ≥
≥ ≥
≥ ≥
≥ Annex Command Line Interpreter * Copyright 1988 Xylogics ≥
≥ annex: ≥
≥ DISCONNECTED ≥
¿ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒŸ
…ÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕª
∫ Command Format: passwd ∫
»ÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕº
Sample Session:
⁄ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒø
≥ $passwd ≥
≥ Changing password for teacher ≥
≥ Old password: secret ≥
≥ Sorry: < 2 weeks since the last change ≥
≥ $ ≥
¿ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒŸ
…ÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕª
∫ Command Format: man <command> ∫
∫ ∫
∫ command - the UNIX command you want information about ∫
»ÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕº
Example:
.................................................................
. $man ls .
.................................................................
This command will display the on-line manual pages for the ls
command.
The on-line manual pages entry begins with the command name and a
one line summary followed by a synopsis of the command line
syntax. Optional flags and arguments are enclosed by square
brackets []. A detailed description of the command and all of
its options and arguments follow the synopsis. The description
can include helpful examples. At the conclusion of the entry,
related files and commands are listed.
NOTE: Most on-line manual pages will fill more than one
screen. Be sure to control the output to your screen.
1.12 who and finger Commands
Once you have logged onto the Multimax, you can find out who is
logged on the system with the following commands:
…ÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÀ
∫ Command Format: who [options] ∫
∫ ∫
∫ options - see man pages for a complete list ∫
∫ ∫
»ÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕº
The default output (no options) of the who command lists the
user's login name, terminal line, and the time that the user
logged in.
Sample Session:
⁄ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒø
≥ $who ≥
≥ jwheeler ttyp0 Aug 15 10:26 ≥
≥ mvlsdba rt02190 Aug 15 09:25 ≥
≥ teacher rt020b0 Aug 15 11:07 ≥
≥ eholderf rt021c0 Aug 15 11:03 ≥
≥ dbowman rt01150 Aug 15 08:58 ≥
≥ $ ≥
¿ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒŸ
Options will display other information about the users that are
currently logged onto the system. Some items available are the
amount of time that has elapsed since activity occurred on that
line, the process identifier (PID) of the login process,
comments, and exit information.
A UNIX command that provides a little more information about
users that are logged in the system is the finger command.
…ÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕª
∫ Command Format: finger [options] [user1] ∫
∫ ∫
∫ options - see on line manual for complete list ∫
∫ ∫
∫ user1 - login name ∫
»ÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕº
The finger command with no options will list the login name, full
name, terminal name, write status (an asterisk (*) before the
terminal name indicates that write permission is denied), idle
time, login time, office location, and phone number (if known)
for each user that is currently logged in the system.
Sample Session:
⁄ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒø
≥ $finger ≥
≥ Login Name TTY Idle When Office ≥
≥ Jwheeler Jim Wheeler ttyp0 16 Wed 10:26 MP ≥
≥ mvlsdba Motor Veh Lic rt02190 16 Wed 09:25 d7160 ≥
≥ teacher Teacher Acct *rt020b0 Wed 11:07 ≥
≥ eholderf Eileen Holder rt021c0 1 Wed 11:03 ≥
≥ dbowman Dale Bowman rt01150 Wed 08:58 ≥
≥ $ ≥
¿ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒŸ
Workshop 1
DESK EXERCISES
15. How can you control the flow of output to your monitor
screen?
COMPUTER EXERCISES
8. What do you see once you have logged in? Write it here.
9. Enter the command which displays the man pages for the man
command. (Don't forget to control output to the screen.)
11. Enter the command to find out who (hint) is logged into the
system.
12. What command will give you more information about the
current users? Try it.
2. FILES
Of the nine columns, the first three describe modes for the
file's owner, the next three for his group, and the last three
for everyone else. Within each group of three, the first column
describes read access mode, the second write, and the third
execute. A letter in a column indicates access granted, a dash
(-) indicates access denied.
Using the previous example, the user has r (read), w (write), and
x (execute) permissions. Members of the user's logical group can
read (r) or execute (x). Everyone else has read (r) and execute
(x) permissions, too. The effect of these permissions is that
the file's owner is the only one who can modify the file; but
everyone can examine, copy, or execute the file.
To change access modes on a file or directory, use the chmod
command.
…ÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕª
∫ Command Format: chmod <access> <file1[filen]> ∫
∫ ∫
∫ access - access permissions ∫
∫ file1[filen] - one or more files to change permissions ∫
»ÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕº
rw-rwxrwx
and you want to give yourself (user) execute permission and take
away others' (others' here means group and everyone else) write
permissions.
Sample Session:
⁄ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒø
≥ $chmod u+x,g-w,o-w file1 ≥
≥ $ ≥
¿ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒŸ
rwxr-xr-x
If you want to set several protections at once use the equal
sign. The following example will set the permissions for the
user to read and execute.
Sample session:
⁄ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒø
≥ $chmod u=rx file1 ≥
≥ $ ≥
¿ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒŸ
0 000 ---
1 001 --x
2 010 -w-
3 011 -wx
4 100 r--
5 101 r-x
6 110 rw-
7 111 rwx
Notice that every time a one digit (1) occurs in the binary
number the corresponding permissions are also set. Every time a
zero (0) occurs, the corresponding permission is denied. So to
change the file permissions in the previous example, this is the
command to enter:
Sample Session:
⁄ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒø
≥ $chmod 755 file1 ≥
≥ $ ≥
¿ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒŸ
The first octal digit assigns user permissions of read, write and
execute. The second digit assigns the group permission to read
and execute. The last digit sets the others permission to read
and execute too.
3.2 Listing Contents of Directories
…ÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕª
∫ Command Format: ls [options] [dir1[dirn]] ∫
∫ ∫
∫ options - see man pages for a complete list ∫
∫ ∫
∫ dir1[dirn] - one or more directory names ∫
»ÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕº
The -a flag will cause the hidden (initialization) and all other
filenames to be displayed.
/ indicates a directory
* indicates the file is executable.
blank indicates a plain or ordinary file
Example:
.................................................................
. $ls .
.................................................................
Example:
.................................................................
. $ls -l .
.................................................................
Sample session:
⁄ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒø
≥ $ls -la ≥
≥ total 975 ≥
≥ drwxrwxr-x 4 teacher class 2048 Jul 16 17.56 . ≥
≥ drwxr-xr-x 60 root 1536 Jul 13 14:18 .. ≥
≥ -rwx------ 1 teacher class 4210 May 1 08:27 .profile ≥
≥ -rwxr-xr-x 1 teacher class 1948 May 12 13:42 memo ≥
≥ $ ≥
¿ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒŸ
…ÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕª
∫ Command Format: file [options] <file1[filen]> ∫
∫ ∫
∫ file1[filen] - one or more filenames to analyze ∫
»ÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕº
English text
ascii text
c program text
cannot stat
commands text
data
directory
empty
executable
Sample Session:
⁄ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒø
≥ $file speople ≥
≥ speople: commands text ≥
≥ $file test ≥
≥ test: directory ≥
≥ $file mail ≥
≥ mail: data ≥
≥ $ ≥
¿ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒŸ
The cat command displays the contents of a file. The command cat
is an abbreviation for catenate. This command will read each file
in sequence and write it to the monitor screen.
…ÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕª
∫ Command Format: cat [options] [file1[filen]] ∫
∫ ∫
∫ options - see man pages for a complete list ∫
∫ ∫
∫ file1[filen] - one or more file names ∫
»ÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕº
Sample session:
.................................................................
. $cat .
.................................................................
This is the simpliest example but not very exciting. The cat
command will get its input from the keyboard. Everything that is
typed will be displayed on the monitor.
Sample session:
⁄ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒø
≥ $cat main.c ≥
≥ main () ≥
≥ { ≥
≥ printf ("hello from main!\n\n"); ≥
≥ printf ("calling function1!\n\n"); ≥
≥ funct1(); ≥
≥ printf ("back from function1!\n\n"); ≥
≥ printf ("calling function2!\n\n"); ≥
≥ funct2(); ≥
≥ printf ("that's it!\n\n"); ≥
≥ } ≥
≥ $ ≥
¿ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒŸ
Several files can be displayed on the monitor one after the other
by separating the filenames with a space.
Sample session:
⁄ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒø
≥ $cat main.c main.f ≥
≥ main () ≥
≥ { ≥
≥ printf ("hello from main!\n\n"); ≥
≥ printf ("calling function1!\n\n"); ≥
≥ funct1(); ≥
≥ printf ("back from function1!\n\n"); ≥
≥ printf ("calling function2!\n\n"); ≥
≥ funct2(); ≥
≥ printf ("that's it!\n\n"); ≥
≥ } ≥
≥ program calling ≥
≥ write(6,100) ≥
≥ 100 format('Hello from main!',/) ≥
≥ write(6,110) ≥
≥ 110 format(' Calling subroutine1!',/) ≥
≥ call sub1 ≥
≥ write(6,120) ≥
≥ 120 format(t15' Back from subroutine1!',/) ≥
≥ write(6,130) ≥
≥ 130 format(' Calling subroutine2!',/) ≥
≥ call sub2 ≥
≥ write(6,140) ≥
≥ 140 format(t15' Back from subroutine2!',/) ≥
≥ write(6,150) ≥
≥ 150 format(' Thats all, folks!') ≥
≥ end ≥
≥ $ ≥
¿ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒŸ
Sample session:
⁄ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒø
≥ ≥
≥ $pg memo ≥
≥ What's Happening ≥
≥ by Pam Hajny ≥
≥ Denver Office ≥
≥ ≥
≥ With IRM Training: ≥
≥ ≥
. A Reclamation-wide workshop was held in early October to .
. .
. .
Twenty three lines of the file will appear and the : (colon)
prompt will appear on the last line. To have the next twenty
three line of the file appear, simply press (Ret). If you don't
want to see anymore of the file, enter a q (for quit) and the
shell prompt will be redisplayed.
The following UNIX command is useful for viewing the end of a
file without having to display the entire file.
…ÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕª
∫ Command Format: tail [options] [file1] ∫
∫ ∫
∫ options - see man pages for a complete list ∫
∫ ∫
∫ file1 - the file to display, if none is given use ∫
∫ standard input ∫
»ÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕº
Sample Session:
⁄ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒø
≥ $tail memo ≥
≥ data communication between the ASC IBM and other Reclamation computers. ≥
≥ Asynchronous communication can be accomplished with the same terminals ≥
≥ we use for other computer tasks, over the same lines and through the MICOM ≥
≥ port selectors. Currently, host-to-host communications is accomplished ≥
≥ over a line between the IBM and the CYBERs. The software that supports ≥
≥ this communication is called NJEF. Although the capability has been there ≥
≥ for some time, we have recently been working with ASC personnel to ≥
≥ improve its reliability and accessibility. For CYBER users, there is ≥
≥ an NJEF Users' Guide available which can be requested through the Hotline ≥
≥ (303) 236-4567. ≥
≥ $ ≥
¿ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒŸ
3.5 Removing Files
The rm command will remove the entries for one or more files from
a directory. If an entry was the last link to the file, the file
will be destroyed. Removal of a file requires write permission
to the directory itself, but neither read nor write permission to
the file itself. The format for the rm command is:
…ÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕª
∫ Command Format: rm [options] <file1[filen]> ∫
∫ ∫
∫ options - see man pages for a complete list ∫
∫ ∫
∫ file1[filen] - one or more files to remove ∫
»ÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕº
Sample session:
⁄ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒø
≥ $ls ≥
≥ memo ≥
≥ tdata ≥
≥ subdir ≥
≥ $rm memo ≥
≥ $ls ≥
≥ tdata ≥
≥ subdir ≥
≥ $ ≥
¿ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒŸ
The file memo has been deleted from the current working
directory.
Multiple files can be deleted by separating the filenames with a
space.
Sample session:
⁄ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒø
≥ $ls ≥
≥ memo ≥
≥ tdata ≥
≥ subdir ≥
≥ $rm memo tdata ≥
≥ $ls ≥
≥ subdir ≥
≥ $ ≥
¿ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒŸ
3.6 Printing Files
…ÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕª
∫ Command Format: lp [-d<dest>] [-n<number>] [file1[filen]] ∫
∫ ∫
∫ dest - destination (default set by administrator) ∫
∫ ∫
∫ number - number of copies (default is 1) ∫
∫ ∫
∫ file1[filen] - one or more files to be printed ∫
»ÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕº
If no file name is mentioned the standard input is assumed. The
filename dash (-) stands for standard input and may be supplied
in conjunction with named files. The order in which the
filenames appear is the order in which they will be printed.
Sample session:
⁄ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒø
≥ $lp test_285 ≥
≥ request id is mt_600-1271 (1 file) ≥
≥ $ ≥
¿ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒŸ
Sample Session:
⁄ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒø
≥ $lp -dmt_600 test_286 ≥
≥ request id is mt_600-1272 (1 file) ≥
≥ $ ≥
¿ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒŸ
Sample Session:
⁄ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒø
≥ $lp -dmtlzr -n2 test_287 ≥
≥ request id is mtlzr-1273 (1 file) ≥
≥ $ ≥
¿ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒŸ
3.7 Print Status
…ÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕª
∫ Command Format: lpstat [options] ∫
∫ ∫
∫ options - see man pages for a complete list ∫
∫ ∫
»ÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕº
If no options are given, the lpstat command will print the status
of all requests made to lp by the user.
Sample Session:
⁄ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒø
≥ $lpstat ≥
≥ mtlzr-1274 teacher 22560 Jul 16 09:05 on mtlzr ≥
≥ $ ≥
¿ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒŸ
The first field is the remote id of the print job. The username
is next and the size (in bytes) of the print file. The date and
time are next and finally the name of the printer.
One of the options available is -t. This option will print all
of the printer status information.
Sample Session:
⁄ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒø
≥ $lpstat -t ≥
≥ scheduler is running ≥
≥ system default destination: mt_600 ≥
≥ device for mt_600: /dev/rlp000 ≥
≥ device for mtlzr: /dev/rt0002 ≥
≥ mt_600 accepting requests since Sep 19 16:09 ≥
≥ mtlzr accepting requests since Sep 19 16:43 ≥
≥ printer mt_600 is idle. enabled since Jul 3 16:52 ≥
≥ printer mtlzr is idle. enabled since Jul 3 16:51 ≥
≥ $ ≥
¿ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒŸ
…ÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕª
∫ Command Format: cancel <[ids] [printer]> ∫
∫ ∫
∫ ids - request ids (returned by lp command) ∫
∫ ∫
∫ printer - printer name ∫
»ÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕº
Sample Session:
⁄ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒø
≥ $lp -dmt_600 contest ≥
≥ request id is mt_600-1280 (1 file) ≥
≥ $cancel mt_600-1280 ≥
≥ request "mt_600-1280" canceled ≥
≥ $ ≥
¿ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒŸ
3.9 Copying Files
…ÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕª
∫ Command Format: cp <file1[filen]> <target> ∫
∫ ∫
∫ file1[filen] - one or more source files ∫
∫ ∫
∫ target - file or dirname ∫
∫ ∫
∫ file1 and target cannot be the same and ∫
∫ if the target is a file its' contents are ∫
∫ destroyed. ∫
∫ ∫
∫ If target is a directory, then the contents ∫
∫ of the source file(s) is copied to that ∫
∫ directory. ∫
∫ ∫
»ÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕº
Sample Session:
⁄ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒø
≥ $cp contest memo ≥
≥ $ ≥
¿ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒŸ
This will cause a copy of the file contest to be made into a file
named memo. If memo doesn't exist, it will be created. If it
already exists, it will be written over. The cp command is
nondestructive; that means that the source file will remain
intact.
Sample Session:
⁄ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒø
≥ $cp file1 file2 /user0/teacher ≥
≥ $ ≥
¿ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒŸ
A copy of file1 and file2 has been sent to the directory (in this
case, the target directory) /user0/teacher. The user of cp will
own the newly copied files.
3.10 Moving Files
A user may move a file only if he has write access to that file.
The mv (move) command can be used to rename one file.
…ÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕª
∫ Command Format: mv <file1[filen]> <target> ∫
∫ ∫
∫ file1[filen] - one or more source files ∫
∫ ∫
∫ target - file or dirname ∫
∫ ∫
∫ file1 and target cannot be the same and ∫
∫ if the target is a file its' contents are ∫
∫ destroyed. ∫
∫ ∫
∫ If target is a directory, then the contents ∫
∫ of the source file(s) are moved to that ∫
∫ directory. ∫
∫ ∫
»ÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕº
Sample Session:
⁄ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒø
≥ $mv contest memo ≥
≥ $ ≥
¿ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒŸ
This will have the effect of changing the name of the file
contest into memo. The permissions on the file will remain the
same. The move command is destructive. That means the source
file no longer exists.
The mv command can also be use to move files from one directory
to another.
Sample Session:
⁄ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒø
≥ $mv file1 file2 /user0/teacher ≥
≥ $ ≥
¿ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒŸ
The files, file1 and file2, have been sent to the directory
/user0/teacher. They have been "moved" and no longer reside in
the current directory. The owner remains the same when a file is
moved.
Workshop 3
DESK EXERCISES
rwx------
rwxr-xr-x
---------
rwxr--r--
Continue on the next page
COMPUTER EXERCISES
13. Execute the file command on the files listed below. Record
the output in the space provided.
a. .profile
b. /bin/vax
c. /dev/console
b. Type ls -a
17. How many fields are displayed for each entry when you
execute ls -l? What are the fields?
The directory in which you find yourself when you first login is
called your home directory. You will be doing much of your work
in your home directory and subdirectories that you'll be creating
to organize your files.
/etc/passwd
/users/sjones/chem/notes
/dev/rdsk/Os3
chem/notes
personal/res
…ÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕª
∫ Command Format: pwd ∫
»ÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕº
Sample Session:
⁄ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒø
≥ $pwd ≥
≥ /user0/teacher ≥
≥ $ ≥
¿ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒŸ
…ÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕª
∫ Command Format: rmdir [options] <dirname> ∫
∫ ∫
∫ options - see man pages for a complete list ∫
∫ ∫
∫ dirname - the directory to remove, it must be empty. ∫
∫ ∫
»ÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕº
Sample Session:
⁄ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒø
≥ $pwd ≥
≥ /user0/teacher ≥
≥ $ls -la ≥
≥ total 5 ≥
≥ drwxr-xr-x 2 teacher class 512 Jul 18 08:12 . ≥
≥ drwxrwxr-x 5 root root 2048 Jul 1 13:14 .. ≥
≥ $rmdir teacher ≥
≥ rmdir:teacher:Directory does not exist ≥
≥ $ ≥
¿ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒŸ
⁄ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒø
≥ $rmdir . ≥
≥ rmdir: .: Can't remove current directory or .. ≥
≥ $ ≥
¿ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒŸ
…ÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕª
∫ Command Format: cd [dirname] ∫
∫ ∫
∫ dirname - If not specified, the value of the $HOME ∫
∫ shell variable will be used as the new ∫
∫ current working directory. ∫
∫ ∫
∫ If the directory given is an absolute pathname ∫
∫ that directory is the new current working ∫
∫ directory. A relative pathname can also be ∫
∫ given. ∫
»ÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕº
Sample Session:
⁄ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒø
≥ $cd /user0/teacher ≥
≥ $pwd ≥
≥ /user0/teacher ≥
≥ $ ≥
¿ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒŸ
Sample Session:
⁄ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒø
≥ $cd memos ≥
≥ $pwd ≥
≥ /user0/teacher/memos ≥
≥ $ ≥
¿ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒŸ
This command will look for a subdirectory called memos under the
current working directory. If it is found, it will become the
new working directory; otherwise, an error will occur.
…ÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕª
∫ Command Format: mv <dirname> <target> ∫
∫ ∫
∫ dirname - name of the source directory ∫
∫ target - target directory name ∫
»ÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕº
Sample Session:
⁄ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒø
≥ $mv users newusers ≥
≥ $ ≥
¿ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒŸ
This will have the effect of changing the name of the directory
users into newusers. The permissions on the directory will
remain the same.
Sample Session:
⁄ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒø
≥ $ls -la ≥
≥ total 975 ≥
≥ drwxrwxr-x 4 teacher class 2048 Jul 16 17.56 . ≥
≥ drwxr-xr-x 60 root 1536 Jul 13 14:18 .. ≥
≥ ---------- 1 teacher class 4210 May 1 08:27 .profile ≥
≥ -rwxr-xr-x 1 teacher class 1948 May 12 13:42 memo ≥
≥ $ ≥
¿ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒŸ
Sample Session:
⁄ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒø
≥ $ls -ld ≥
≥ drwxrwxr-x 4 teacher class 2048 Jul 16 17:56 . ≥
≥ $ ≥
¿ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒŸ
The response from the command simply shows the long information
for the current working directory . (dot).
Information can also be obtained for the parent of the current
working directory by using its name as an argument.
Sample Session:
⁄ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒø
≥ $ls -ld .. ≥
≥ drwxr-xr-x 60 root root 1536 Jul 13 14:18 .. ≥
≥ $ ≥
¿ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒŸ
Here's the long list of the current working directories parent.
(.. is the shorthand representation of the current working
directories parent)
Both of the directory names . (dot) and .. (dot dot) can be used
as arguments to commands. To change the parent of the current
working directory into the current working directory, the command
is:
Sample Session:
⁄ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒø
≥ $pwd ≥
≥ /user0/teacher ≥
≥ $cd .. ≥
≥ $pwd ≥
≥ /user0 ≥
≥ $ ≥
¿ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒŸ
This is all very interesting but what good is it? You can
specify the current working directory or its parent without
typing the entire absolute pathname. It can also be handy when
giving arguments to UNIX commands.
4.7.1 Read
Access to a directory means that the user can read the contents.
The user can look at the filenames inside the directory.
4.7.2 Write
Access means that the user can add or delete files to the
contents of the directory.
4.7.3 Execute
3. _______________________________ Write the minimum pathname needed for 9. You are in /mnt/Uni3/File2
each of the following:
4. _______________________________ _______________________________
4.7.4 Typical Root Directory
⁄ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒø
≥ $ ls -FC / ≥
≥ ≥
≥ ≥
≥ Student/ bin/ lib/ stand/ u2/ user2/ ≥
≥ ≥
≥ Students/ bad/ lisp/ tmp/ unix* usr/ ≥
≥ ≥
≥ Support/ dev/ lost+found/ tmp.sh unix.bak* usr2/ ≥
≥ ≥
≥ etc/ mnt/ tmp1/ unix.test* usr3/ a.out* ≥
≥ ≥
≥ foo rel_notes tmp2/ user0/ install/ shlib/ ≥
≥ ≥
≥ u1/ user1/ ≥
¿ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒŸ
NOTES
‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹
Workshop 4
DESK EXERCISES
1. What is a directory?
COMPUTER EXERCISES
14. Enter the command that will return you to your home
directory.
15. Enter the command that will change to your current working
directories parent.
This chapter will deal with the utilities that allow one user to
communicate with another. Some of these utilities require the
other user to be logged in and others do not.
…ÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕª
∫ Command Format: mailx [options] [user1[usern]] ∫
∫ ∫
∫ options - see man pages for a complete list ∫
∫ ∫
∫ user1[usern] - one or more users to get the mail ∫
∫ message ∫
∫ ∫
»ÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕº
Sample Session:
⁄ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒø
≥ $mailx rharding(Ret) ≥
≥ Subject: ≥
¿ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒŸ
Sample Session:
⁄ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒø
≥ $mailx rharding(Ret) ≥
≥ Subject: Work schedule(Ret) ≥
≥ Please check the bulletin board(Ret) ≥
≥ for the new work schedule.(Ret) ≥
≥ Ctrl-D ≥
≥ $ ≥
¿ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒŸ
The shell prompt on the last line indicates that the message has
been queued (placed in a waiting line) and will be sent.
5.2 Reading Mail
Example:
.................................................................
. $mailx .
.................................................................
Sample Session:
⁄ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒø
≥ $mailx ≥
≥ No mail for teacher ≥
≥ $ ≥
¿ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒŸ
Example:
.................................................................
. you have mail .
.................................................................
This notice will appear when you login to the system or upon
return to the shell from another procedure.
When you have been notified of mail waiting to be read, enter the
command to enter mail. The screen will look something like this:
Sample Session:
⁄ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒø
≥ $mailx ≥
≥ ≥
≥ mailx version 3.1 Type ? for help. ≥
≥ "/usr/mail/teacher": 3 messages 3 new ≥
≥ >N 1 bhood Fri Jul 13 13:01 21/324 Review session≥
≥ N 2 class2 Fri Jul 13 14:53 15/211 Meeting notice≥
≥ N 3 phajny Fri Jul 13 16:53 11/272 Reorganization≥
≥ ? ≥
¿ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒŸ
To read the mail messages you can do any of the following steps:
All messages that are not specifically deleted are saved when
quitting mailx. Messages that have been saved are placed in a
file in the home directory called mbox. The mbox file is the
default. It is possible to save them in a file of the users
choice. Messages that have not been read are held in the
mailbox. The command to save messages comes in two forms.
…ÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕª
∫ Command Format: S [msglist] ∫
∫ ∫
∫ msglist = ∫
∫ ∫
∫ n message number n the current message ∫
∫ ∫
∫ ^ the first undeleted message ∫
∫ ∫
∫ $ the last message ∫
∫ ∫
∫ * all messages ∫
∫ ∫
∫ n-m an inclusive range of message numbers ∫
∫ ∫
∫ user all messages from user ∫
∫ ∫
∫ /string All messages with string in the subject line ∫
∫ (case is ignored) ∫
∫ ∫
∫ :c all messages of type c where c is: ∫
∫ ∫
∫ d - deleted messages ∫
∫ n - new messages ∫
∫ o - old messages ∫
∫ r - read messages ∫
∫ u - unread messages ∫
∫ ∫
»ÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕº
Messages specified by the msglist argument are saved in a file in
the current directory named for the author of the first message
in the list. If the username 'teacher' sent the message and you
entered:
Sample Session:
⁄ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒø
≥ ? S * ≥
≥ "teacher" [New file] 11/268 ≥
≥ ? ≥
¿ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒŸ
The mail message has been saved into a file in your current
directory called 'teacher'. If you want to save the file in
another filename, you can do that with the second method of
saving mail. Basically, it works the same as S; but it allows
you to save the mail to a file you specify.
…ÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕª
∫ Command Format: s [msglist] [file1] ∫
∫ ∫
∫ msglist - same arguments as before ∫
∫ ∫
∫ file1 - filename which will receive the saved mail ∫
»ÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕº
5.4 Deleting Mail
* all messages
d - deleted messages
n - new messages
o - old messages
r - read messages
u - unread messages
Sample Session:
⁄ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒø
≥ $mailx ≥
≥ ≥
≥ mailx version 3.1 Type ? for help. ≥
≥ "/usr/mail/teacher": 3 messages 3 new ≥
≥ >N 1 bhood Fri Jul 13 13:01 21/324 Review session ≥
≥ N 2 class2 Fri Jul 13 14:53 15/211 Meeting notice ≥
≥ N 3 phajny Fri Jul 13 16:53 11/272 Reorganization ≥
≥ ? d * ≥
≥ ? q ≥
≥ $ ≥
¿ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒŸ
All of the messages have now been deleted. The messages are not
actually deleted until the mailbox is exited. Until that happens
the u (for undelete) command is available. Once the quit command
(q) is entered, however, the deleted messages are gone.
5.5 Undeliverable Mail
Sample Session:
⁄ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒø
≥ $mailx ≥
≥ ≥
≥ mailx version 3.1 Type ? for help. ≥
≥ "/usr/mail/teacher": 1 message 1 new ≥
≥ >N 1 teacher Fri Jul 13 13:45 25/655 Returned mail:User unkno ≥
≥ ? ≥
≥ Message 1: ≥
≥ From teacher Fri Jul 13 13:45:57 1990 ≥
≥ Received: by domax1.UUCP (5.51/) ≥
≥ id AA01997; Fri, 13 Jul 90 13:45:54 mdt ≥
≥ Date: Fri, 13 Jul 90 13:45:54 mdt ≥
≥ From: Mail Delivery Subsystem <MAILER-DAEMON> ≥
≥ Subject: Returned mail: User unknown ≥
≥ Message-Id: <[email protected]> ≥
≥ To: teacher ≥
≥ Status: R ≥
≥ ≥
≥ ----- Transcript of session follows ----- ≥
≥ 550 snoopy... User unknown: No such file or directory ≥
≥ ≥
≥ ----- Unsent message follows ----- ≥
≥ Received: by domax1.UUCP (5.51/) ≥
≥ id AA01995; Fri, 13 Jul 90 13:45:54 mdt ≥
≥ Date: Fri, 13 Jul 90 13:45:54 mdt ≥
≥ From: Teacher Account D-7130 <teacher> ≥
≥ Message-Id: <[email protected]> ≥
≥ To: snoopy ≥
≥ Subject: Meeting notice ≥
≥ ≥
≥ Meeting will be held at Charlie Brown's house. ≥
≥ July 13, 1990 ≥
≥ 7:30 p.m. ≥
≥ ≥
≥ ? ≥
¿ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒŸ
Sample Session:
⁄ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒø
≥ ? ? ≥
≥ mailx commands ≥
≥ type [msglist] print messages ≥
≥ next goto and type next message ≥
≥ edit [msglist] edit messages ≥
≥ from [msglist] give header lines of messages ≥
≥ delete [msglist] delete messages ≥
≥ undelete [msglist] restore deleted messages ≥
≥ save [msglist] file append messages to file ≥
≥ reply [message] reply to message, including all recipients ≥
≥ Reply [msglist] reply to the authors of the messages ≥
≥ preserve [msglist] preserve messages in mailbox ≥
≥ mail user mail to specific user ≥
≥ quit quit, preserving unread messages ≥
≥ xit quit, preserving all messages ≥
≥ header print page of active message headers ≥
≥ ! shell escape ≥
≥ cd [directory] chdir to directory or home if none given ≥
≥ list list all commands (no explanations) ≥
≥ top [msglist] print top 5 lines of messages ≥
≥ z [-] display next [last] page of 10 headers ≥
≥ ≥
≥ [msglist] is optional and specifies messages by number, author, ≥
≥ or type. ≥
≥ The default is the current message. ≥
≥ ? ≥
¿ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒŸ
…ÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕª
∫ Command Format: talk <user1> [ttyname] ∫
∫ ∫
∫ user1 - If you are talking to someone on the same machine, ∫
∫ then this is just the person's username. If ∫
∫ you want to talk to a user on another host, then ∫
∫ user1 is of the form: ∫
∫ ∫
∫ host!user or ∫
∫ host.user or ∫
∫ host:user or ∫
∫ user@host ∫
∫ ∫
∫ user@host being preferred ∫
∫ ∫
∫ ttyname - If the person you want to talk to is logged on ∫
∫ more than once, you can use the ttyname argument ∫
∫ to indicate the terminal name. ∫
»ÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕº
Example originator:
.................................................................
. $talk student .
.................................................................
Example recipient:
.................................................................
. Message from Talk_Daemon@domax1 at 17:36 ... .
. talk: connection requested by teacher@domax1. .
. talk: respond with: talk teacher@domax1 .
.................................................................
When the recipient has typed in talk teacher@domax1, the
following message will appear on the originators screen:
⁄ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒø
≥ Connection established. ≥
¿ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒŸ
⁄ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒø
≥ Hi Snoopy, ≥
≥ Charlie Brown suggests we meet at noon today. ≥
≥ ≥
≥ ≥
≥ ≥
≥ ≥
≥ ≥
≥ ≥
≥-------------------------------------------------------------- ≥
≥ OK, but the billiard championship is in my house at 1 P.M. ≥
≥ ≥
≥ ≥
≥ ≥
≥ ≥
≥ ≥
≥ ≥
¿ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒŸ
Sample session recipient:
⁄ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒø
≥ OK, but the billiard championship is in my house at 1 P.M. ≥
≥ ≥
≥ ≥
≥ ≥
≥ ≥
≥ ≥
≥ ≥
≥ ≥
≥-------------------------------------------------------------- ≥
≥ Hi Snoopy, ≥
≥ Charlie Brown suggests we meet at noon today. ≥
≥ ≥
≥ ≥
≥ ≥
≥ ≥
≥ ≥
¿ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒŸ
Example:
.................................................................
. [Connection closing. Exiting] .
.................................................................
5.7 Talk Permission Denied
…ÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕª
∫ Command Format: mesg [-[n][y]] ∫
∫ ∫
∫ n - no, forbids messages via write by revoking non-user ∫
∫ write permission on the user's terminal. ∫
∫ ∫
∫ y - yes, reinstates permission ∫
∫ ∫
∫ ∫
∫ mesg with no arguments will report the current state ∫
∫ without changing it. ∫
»ÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕº
Sample Session:
⁄ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒø
≥ $mesg ≥
≥ is y ≥
≥ $mesg -n ≥
≥ $mesg ≥
≥ is n ≥
≥ $mesg -y ≥
≥ $mesg ≥
≥ is y ≥
≥ $ ≥
¿ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒŸ
…ÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕª
∫ Command Format: write <user1> [ttyname] ∫
∫ ∫
∫ user1 - username of the user ∫
∫ ∫
∫ ttyname - which terminal to send (i.e. tty00) ∫
»ÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕº
⁄ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒø
≥ $write lucy ≥
≥ Hello Lucy, ≥
≥ What's the latest from the Psychology Department? ≥
≥ (interrupt character) ≥
≥ $ ≥
¿ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒŸ
⁄ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒø
≥ $ ≥
≥ ≥
≥ Message from teacher on domax1 (rt021d0) [ Thu Jul 19 13:43:12 ] .. ≥
≥ Hello Lucy, ≥
≥ What's the latest from the Psychology Department? ≥
≥ <EOT> ≥
≥ ≥
≥ $ ≥
¿ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒŸ
When the user first 'writes' to another user, wait for the
recipient to 'write' back before starting to send. Both users
should agree on a signal to indicate to the other person that
they can reply. How about 'o' for over. The signal 'oo' could
be used for "over and out," which would mean that the
communication is finished.
NOTES
‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹
Workshop 5
DESK EXERCISES
2. Once you have entered the mail utility what command can you
enter to get help?
13. Read your mail and save one message to the current working
directory.
15. What UNIX command do you enter to deny permission for a talk
connection? Try it!
6. SHELL BASICS
There have been several shells written for UNIX. They have
different features and each is in use through out the world. The
BourneShell is the accepted standard for System V UNIX. Another
shell is called the Cshell, named for "C" which is the high-level
programming language. Another shell is the KornShell; it is
named after the person who developed it, David Korn. It has more
features than the BourneShell and is of special interest to
programmers.
The purpose of this chapter is to give you some idea as to the
functions available through the shells and their general
function. Details of shell programming are discussed in another
class, "UNIX Bourne Shell Programming".
UMAX makes full use of the ASCII character set. Unlike operating
system command languages like VMS or NOS, UNIX is case sensitive.
In addition, several characters have special meanings to the
shell. We have already seen that a slash (/) by itself indicates
the root directory and is used with directory, subdirectory, and
filenames to indicate an absolute or relative pathname.
` ' $ { } || && ;
…ÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕª
∫ Command Format: command < input-file1 ∫
∫ ∫
∫ command - a command ∫
∫ ∫
∫ input-file1 - input file that supplies input ∫
∫ to the command ∫
»ÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕº
Sample Session:
⁄ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒø
≥ $mailx phajny < report ≥
≥ $ ≥
¿ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒŸ
The file named report will be sent to the login name phajny.
Mail normally expects the input to come from standard input, the
keyboard. The input redirection symbol causes the input to mail
to come from the file called report.
6.2 Output Redirection
…ÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕª
∫ Command Format: command > output-file1 ∫
∫ ∫
∫ command - a command ∫
∫ ∫
∫ output-file1 - output file that will receive the output ∫
∫ from the command ∫
»ÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕº
The memory trick still works; only now the funnel points toward
the file that will receive the output.
Sample Session:
⁄ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒø
≥ $ls -l > listing ≥
≥ $ ≥
¿ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒŸ
Sample session:
⁄ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒø
≥ $cat > file1 ≥
≥ This is a line of text. ≥
≥ This is another line of text. ≥
≥ (Ctrl-D) ≥
≥ $cat file1 ≥
≥ This is a line of text. ≥
≥ This is another line of text. ≥
≥ $ ≥
¿ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒŸ
6.3 Output Redirection with Append
…ÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕª
∫ Command Format: command >> output-file1 ∫
∫ ∫
∫ command - a command ∫
∫ ∫
∫ output-file1 - receives the output from command ∫
»ÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕº
Sample Session:
⁄ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒø
≥ $ls -l subdir >> listing ≥
≥ $ ≥
¿ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒŸ
This will append the output of the ls command to the file listing
without destroying any existing data. If the file does not
exist, the shell will create it.
⁄ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒø
≥ $cat >> file1 ≥
≥ This is a third line of text. ≥
≥ This is a fourth line of text. ≥
≥ (Ctrl-D) ≥
≥ $cat file1 ≥
≥ This is a line of text. ≥
≥ This is another line of text. ≥
≥ This is a third line of text. ≥
≥ This is a fourth line of text. ≥
≥ $ ≥
¿ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒŸ
If the file does not exist it will be created and the text added.
Input and output redirection can occur on the same command line.
…ÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕª
∫ Command Format: command < input-file1 > output-file1 ∫
∫ ∫
∫ command - A command ∫
∫ input-file1 - supplies input to command ∫
∫ output-file1 - receives the output from command ∫
»ÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕº
Sample Session:
⁄ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒø
≥ $cat command_file ≥
≥ p ≥
≥ $mailx < command_file > result_file ≥
≥ ≥
≥ $cat result_file ≥
≥ mailx version 3.1 Type ? for help. ≥
≥ "/usr/mail/teacher": 1 message 1 new ≥
≥ >N 1 teacher Mon Dec 31 10:16 57/3171 ≥
≥ Message 1: ≥
≥ From teacher Mon Dec 31 10:16:30 1990 ≥
≥ Received: by domax1.UUCP (5.51/) ≥
≥ id AA18976; Mon, 31 Dec 90 10:16:28 mst ≥
≥ Date: Mon, 31 Dec 90 10:16:28 mst ≥
≥ From: Teacher Account D-7130 <teacher> ≥
≥ Message-Id: <[email protected]> ≥
≥ To: teacher ≥
≥ Status: R ≥
≥ ≥
≥ What's Happening ≥
≥ by Pam Hajny ≥
≥ Denver Office ≥
≥ ≥
≥ With IRM Training: ≥
≥ ≥
≥ A Reclamation-wide workshop was held in early October to discuss information ≥
≥ resources management training. Trainers from each region and the Denver Offic ≥
≥ shared training techniques, ideas and course materials. We met one afternoon ≥
≥ with the personnel training officers to discuss broad IRM training needs and ≥
. .
. .
. .
6.5 Pipes
…ÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕª
∫ Command Format: command1 | command2 ∫
∫ ∫
∫ command1 - a command ∫
∫ ∫
∫ command2 - a second command ∫
»ÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕº
Example:
.................................................................
. $man acct | pg .
.................................................................
The output from the command man are processed by the pg command
before appearing on your screen. Normally the output from the
man command will appear on the monitor line after line until the
end is reached. In this case, the output is "piped" to the pg
command; and the screen will stop scrolling after 23 lines so you
can read them.
6.6 Wildcards
Example:
jo?eph
This indicates that the third letter of the string "jo eph" could
be any single character. Any character could be substituted for
the ? character, including numeric and special characters.
Example:
jo[a-z]eph
Example:
jo[s,m,5]eph
The only set of characters that will make a match are lowercase
s, lowercase m, and the number 5. No other character will make a
match.
The string jos* causes the shell to look for every string that
begins with the letters "jos," regardless of their length while
[i-k]*h finds every string that begins with "i", "j", or "k" and
ends with an "h".
Sample Session:
.................................................................
. $man acc* .
.................................................................
All of the commands that begin with the letters acc followed by
any string (including none) will be passed to the man command as
arguments.
Sample Session:
.................................................................
. $ls *.c .
.................................................................
In order for the shell to stop interpretation of a special
character (i.e., use it as a normal character), it must be
preceded by a backslash (\) or enclosed in single quotes.
Example:
jo\?eph
or
'jo?eph'
Sample Session:
⁄ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒø
≥ $ <break> ≥
≥ annex: ≥
¿ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒŸ
…ÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕª
∫ Command Format: jobs ∫
»ÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕº
Sample Session:
⁄ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒø
≥ annex: jobs ≥
≥ +1 rlogin domax1 ≥
≥ -2 rlogin domax1 ≥
≥ annex: ≥
¿ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒŸ
This shows that there are two jobs in suspension. Both of these
sessions did a remote login to domax1. This is just for
illustration.
The fg (foreground) command returns to a suspended job. The
command displays the job number and the Annex command that
created it. When no arguments are provided, fg will return to
the most recent job. With a numeric argument, fg returns the
specified job.
…ÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕª
∫ Command Format: fg [n] ∫
∫ ∫
∫ (none) - most recent job (+) to foreground ∫
∫ n - job "n" to foreground ∫
»ÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕº
Sample Session:
⁄ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒø
≥ annex: jobs ≥
≥ +1 rlogin domax1 ≥
≥ -2 rlogin domax1 ≥
≥ annex:fg 1 ≥
≥ 1 rlogin domax1 ≥
≥ (Ret) ≥
≥ $ ≥
¿ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒŸ
NOTES
‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹
Workshop 6
DESK EXERCISES
2. What is a wildcard?
a. ?
b. [0-9]
c. *
a. M[i,r]*
b. b?ll
c. me??[1,2]
d. '*special*'
e. anyone\?
Continue on the next page
5. What is "standard input?"
COMPUTER EXERCISES
16. Save the on-line manual pages on the cat command in a file
called mp0. (hint: output redirection)
Why?
Why?
…ÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕª
∫ ∫
∫ Command Format: ftp [options] [host] ∫
∫ ∫
∫ options - see man pages for a complete list ∫
∫ ∫
∫ host - the name of the remote computer ∫
∫ ∫
»ÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕº
There are two ways to make a connection with the remote computer.
The first way is to invoke FTP using no options, simply enter the
ftp command at the shell prompt. UMAX will respond with the ftp
prompt: ftp>
Sample Session:
⁄ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒø
≥ $ftp ≥
≥ ftp> ≥
¿ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒŸ
FTP commands can now be entered. The utility has its own set of
commands, and we will discuss about 12 of them in this chapter.
A complete list of the FTP commands can be obtained by entering
help at the FTP prompt.
The command to establish a connection with remote computer is:
…ÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕª
∫ ∫
∫ Command Format: open <host> [port] ∫
∫ ∫
∫ host - hostname, this host must have an FTP server. ∫
∫ ∫
∫ port - port number (optional) ∫
∫ ∫
»ÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕº
⁄ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒø
≥ ftp>open erc830 ≥
≥ Connected to erc830. ≥
≥ 220 erc830 Wollongong FTP Server (Version 5.0) at Mon Dec 4 ≥
≥ Name (ERC830:rharding): ≥
¿ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒŸ
The cursor will stop after the colon. FTP is waiting for you to
enter the login name to use when signing on to the remote
computer. FTP tries to help you out by giving you a default
login name. In the above example, the default login name is
rharding. To select the default name, press (Ret). You can
enter any login name you want and then press (Ret). After you
have selected the login name, either by choosing the default or
entering a new name, you will be asked for the password.
⁄ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒø
≥ 331 Password required for rharding. ≥
≥ Password: ≥
≥ 230 User logged in, default directory D_1131:[RHARDING] ≥
¿ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒŸ
Enter the password required for the login name that you
specified. Echoing is disabled and the password you enter will
not be displayed on the screen. If you entered the correct
password, message number 230 will show you are logged in and the
default directory on the remote system. You are now logged into
the remote computer system and can proceed to transfer files.
⁄ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒø
≥ $ftp ≥
≥ ftp>open cy2 ≥
≥ Connected to cy2. ≥
≥ 220 SERVICE READY FOR NEW USER. ≥
≥ Name (cy2:rharding): class8 ≥
≥ 331 USER NAME OKAY, NEED PASSWORD. ≥
≥ Password: secret ≥
≥ 230 USER LOGGED IN, PROCEED. ≥
≥ ftp> ≥
¿ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒŸ
This example for the CYBER is similar to the VAX example. Notice
that there a few differences. The login name was changed from
rharding and the username class8 was entered instead.
7.2.2 Calling FTP with a hostname
⁄ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒø
≥ $ftp erc830 ≥
≥ 220 erc830 Wollongong FTP Server (Version 5.0) at Fri Dec ≥
≥ Name (ERC830:rharding): ≥
¿ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒŸ
You can now enter the username for the remote system, and you
will then be prompted for the password. The effect of specifying
the hostname on the ftp command line is to do an "automatic" open
command.
NOTE: The messages are slightly different from the VAX login.
The login for the CYBER works in a similar manner.
7.3 Local Computer Commands
From the FTP prompt, you can issue commands to the local computer
to display files or show the contents of a directory. The
commands you enter are FTP commands; and although they might
resemble UNIX commands, they are NOT UNIX commands.
…ÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕª
∫ ∫
∫ Command Format: get <remote-file> [local-file] ∫
∫ ∫
∫ remote-file - the filename on the remote computer ∫
∫ ∫
∫ local-file - the filename on the local computer ∫
∫ ∫
»ÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕº
⁄ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒø
≥ ftp>get overview.dat ≥
≥ 200 PORT Command OK. ≥
≥ 125 File transfer started correctly ≥
≥ 226 File transfer completed ok ≥
≥ local: overview.dat remote: overview.dat ≥
≥ 884 bytes received in 0.04 seconds (22 Kbytes/s) ≥
≥ ftp> ≥
¿ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒŸ
Messages 200, 125, and 226 let you know that the file transferred
properly. The next line shows the local-filename, in this case
we didn't specify the local-filename, so the remote-filename and
the local-filename are the same. The next line shows the number
of bytes transferred and the amount of time it took to transfer
the file.
CYBER Sample Session:
⁄ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒø
≥ ftp>get prolog8 ≥
≥ 220 COMMAND OKAY. ≥
≥ 150 FILE STATUS OKAY; ABOUT TO OPEN DATA CONNECTION. ≥
≥ 226 CLOSING DATA CONNECTION. ≥
≥ local: prolog8 remote: prolog8 ≥
≥ 41 bytes received in 0.8 seconds (0.05 Kbytes/s) ≥
≥ ftp> ≥
¿ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒŸ
7.3.1 Changing the Local Directory
…ÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕª
∫ ∫
∫ Command Format: lcd [dirname] ∫
∫ ∫
∫ dirname - the name of the new local working directory ∫
∫ ∫
∫ if directory is omitted, the home directory is assumed ∫
∫ ∫
»ÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕº
Sample Session:
⁄ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒø
≥ ftp>lcd /user0/student0 ≥
≥ Local directory now /user0/student0 ≥
≥ ftp> ≥
¿ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒŸ
Any UNIX command can be entered from the FTP utility. You must
preface the command with the FTP command that invokes the
interactive shell.
…ÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕª
∫ ∫
∫ Command Format: ! [command [arguments]] ∫
∫ ∫
∫ command - any valid UNIX command, if omitted the ∫
∫ interactive shell is invoked ∫
∫ ∫
∫ arguments - if supplied are arguments to the UNIX command ∫
∫ ∫
»ÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕº
Example:
.................................................................
. ftp>!ls -la .
.................................................................
From the FTP prompt, you can issue commands to the remote
computer to display files or show the contents of the remote
directory. Recall that the commands you enter are FTP commands;
and although they look like UNIX commands, they are not.
…ÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕª
∫ ∫
∫ Command Format: put <local-file> [remote-file] ∫
∫ ∫
∫ local-file - the filename on the local computer ∫
∫ ∫
∫ remote-file - the filename on the remote computer ∫
∫ ∫
»ÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕº
⁄ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒø
≥ ftp>put memo ≥
≥ 200 PORT Command OK. ≥
≥ 125 File transfer started correctly ≥
≥ 226 File transfer completed ok ≥
≥ local: memo remote: memo ≥
≥ 2299 bytes sent in 0.08 seconds (28 Kbytes/s) ≥
≥ ftp> ≥
¿ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒŸ
Messages 200, 125, and 226 let you know that the file transferred
properly. The next line shows the local-filename. In this case,
we didn't specify the local-filename, so the local-filename and
the remote-filename are the same. The next line shows the number
of bytes sent and the amount of time for the transfer.
CYBER Sample Session:
⁄ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒø
≥ ftp>put memo ≥
≥ 200 COMMAND OKAY. ≥
≥ 150 FILE STATUS OKAY; ABOUT TO OPEN DATA CONNECTION. ≥
≥ 226 CLOSING DATA CONNECTION. ≥
≥ local:memo remote:memo ≥
≥ 2299 bytes sent in 0.08 seconds (28 Kbytes/s) ≥
≥ ftp> ≥
¿ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒŸ
7.4.1 Changing the Remote Directory
…ÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕª
∫ ∫
∫ Command Format: cd <remote-dirname> ∫
∫ ∫
∫ remote-dirname - the name of the new remote working ∫
∫ directory ∫
∫ ∫
»ÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕº
⁄ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒø
≥ ftp>cd d_1131:[gholdaway] ≥
≥ 200 Working directory changed to D_1131:[GHOLDAWAY] ≥
≥ ftp> ≥
¿ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒŸ
CYBER Example:
.................................................................
. 502 COMMAND NOT IMPLEMENTED. .
.................................................................
…ÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕª
∫ ∫
∫ Command Format: ls [remote-dirname] [local-file] ∫
∫ ∫
∫ remote-dirname - working directory on remote computer ∫
∫ ∫
∫ local-file - local file where the remote-directory ∫
∫ contents will be written. If omitted, ∫
∫ the output is sent to the screen. ∫
∫ ∫
»ÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕº
⁄ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒø
≥ ftp>ls ≥
≥ 200 PORT Command OK. ≥
≥ 125 File transfer started correctly ≥
≥ login.com;13 ≥
≥ jeff.;1 ≥
≥ test.com;1 ≥
≥ 226 File transfer completed ok ≥
≥ 228 bytes received in 0.06 seconds (0.34 Kbytes/s) ≥
≥ ftp> ≥
¿ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒŸ
⁄ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒø
≥ ftp>ls ≥
≥ 200 COMMAND OKAY. ≥
≥ 150 FILE STATUS OKAY; ABOUT TO OPEN DATA CONNECTION. ≥
≥ PROLOG8 ≥
≥ FSEP1A ≥
≥ FSEP1 ≥
≥ FSEP2 ≥
≥ 226 CLOSING DATA CONNECTION. ≥
≥ 52 bytes received in 1 seconds (0.05 Kbytes/s) ≥
≥ ftp> ≥
¿ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒŸ
7.5 Closing the Connection
The current FTP session with the remote server can be terminated
without leaving FTP. When the current session is terminated a
session to another remote FTP server can be initiated.
…ÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕª
∫ Command Format: close ∫
»ÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕº
This command will terminate the current FTP session with the
remote server and return to the FTP command interpreter.
⁄ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒø
≥ ftp>close ≥
≥ 221 Goodbye. ≥
≥ ftp> ≥
¿ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒŸ
⁄ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒø
≥ ftp>close ≥
≥ 221 SERVICE CLOSING CONTROL CONNECTION. LOGGED OUT. ≥
≥ ftp> ≥
¿ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒŸ
7.6 Exiting FTP
When you have finished using FTP, the following command will
terminate FTP and return control to the shell.
…ÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕª
∫ Command Format: quit ∫
»ÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕº
This command will terminate the current FTP session and exit FTP.
⁄ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒø
≥ ftp>quit ≥
≥ 221 Goodbye. ≥
≥ $ ≥
¿ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒŸ
⁄ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒø
≥ ftp>quit ≥
≥ 221 SERVICE CLOSING CONTROL CONNECTION. LOGGED OUT. ≥
≥ $ ≥
¿ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒŸ
7.7 Special FTP Commands
This section will discuss some FTP commands that are useful in
using FTP. They include an on-line help, status, and the !
character.
The help command will display all of the FTP commands on the
screen.
…ÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕª
∫ ∫
∫ Command Format: help [command] ∫
∫ ∫
∫ command - an FTP command ∫
∫ ∫
∫ if omitted, prints a list of all known commands ∫
∫ ∫
»ÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕº
Sample Session:
⁄ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒø
≥ ftp>help get ≥
≥ get receive file ≥
≥ ftp> ≥
¿ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒŸ
…ÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕª
∫ Command Format: ? [command] ∫
»ÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕº
Sample Session:
⁄ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒø
≥ ftp>? put ≥
≥ put send one file ≥
≥ ftp> ≥
¿ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒŸ
FTP status can be displayed on the screen by entering the
following command:
…ÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕª
∫ Command Format: status ∫
»ÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕº
Sample Session:
⁄ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒø
≥ ftp>status ≥
≥ Connected to ERC830. ≥
≥ No proxy connection. ≥
≥ Mode: stream; Type: ascii; Form: non-print; Structure: file ≥
≥ Verbose: on; Bell: off; Prompting: on; Globbing: on ≥
≥ Store unique: off; Receive unique: off ≥
≥ Case: off; CR stripping: on ≥
≥ Ntrans: off ≥
≥ Nmap: off ≥
≥ Hash mark printing: off; Use of PORT cmds: on ≥
≥ ftp> ≥
¿ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒŸ
…ÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕª
∫ ∫
∫ Command Format: telnet [host [port]] ∫
∫ ∫
∫ host - the host name ∫
∫ ∫
∫ port - the port number, if not given, use default ∫
∫ ∫
»ÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕº
Sample Session:
⁄ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒø
≥ $telnet ≥
≥ telnet> ≥
¿ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒŸ
…ÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕª
∫ Command format: open <host> [port] ∫
∫ ∫
∫ host - host name ∫
∫ ∫
∫ port - port number, optional ∫
»ÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕº
Sample session:
⁄ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒø
≥ telnet>open erc830 ≥
≥ Trying... ≥
≥ Connected to erc830. ≥
≥ Escape character is '^]'. ≥
≥ ≥
≥ (Warning message from VAX) ≥
≥ ≥
≥ Username: ≥
¿ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒŸ
If you enter the host name on the same command line as telnet,
the open command will be done for you.
Sample Session:
⁄ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒø
≥ $telnet erc830 ≥
≥ Trying... ≥
≥ Connected to erc830. ≥
≥ Escape character is '^]'. ≥
≥ ≥
≥ ( Warning message from VAX) ≥
≥ ≥
≥ Username: ≥
¿ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒŸ
Sample Session:
⁄ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒø
≥ $lo ≥
≥ Connection closed by foreign host .L-1990 15:57:42.19 ≥
≥ $ ≥
¿ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒŸ
The first $ prompt is the VMS prompt. The lo command logs you
out of the VAX. Notice that we get the connection closed
message, and the next $ prompt is back to the Multimax.
The connection that was created was closed. There is a TELNET
command to close the connection as well.
…ÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕª
∫ Command Format: close ∫
»ÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕº
This TELNET command will close the connection and return to the
TELNET command mode.
…ÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕª
∫ Command Format: quit ∫
»ÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕº
This command will close any open TELNET session and exit TELNET.
An end-of-file (in command mode) will also close a session and
exit.
…ÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕª
∫ Command Format: status ∫
»ÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕº
Sample Session:
⁄ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒø
≥ telnet>status ≥
≥ Connected to erc830. ≥
≥ Operating in character-at-a-time mode. ≥
≥ Escape character is '^]'. ≥
≥ ≥
≥ telnet> ≥
¿ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒŸ
A listing of TELNET commands can be displayed by entering the
following command at the TELNET command mode prompt telnet>:
…ÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕª
∫ Command Format: help ∫
∫ ∫
∫ ? ∫
»ÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕº
Sample Session:
⁄ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒø
≥ telnet>help ≥
≥ Commands may be abbreviated. Commands are: ≥
≥ ≥
≥ close close current connection ≥
≥ display display operating parameters ≥
≥ mode try to enter line-by-line or char-at-a-time mode ≥
≥ open connect to a site ≥
≥ quit exit telnet ≥
≥ send transmit special characters ('send ?' for more) ≥
≥ set set operating parameters ('set ?' for more) ≥
≥ status print status information ≥
≥ toggle toggle operating parameters ('toggle ?' for more) ≥
≥ z suspend telnet ≥
≥ ? print help information ≥
≥ telnet> ≥
¿ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒŸ
Workshop 7
12. Close the connection with the VAX and then open a connection
to the CYBER.
15. Transfer the file "memo" from the Multimax to the CYBER.
Change the name on the CYBER to a filename of your choice.
16. Transfer the file "MAYDATA" from the CYBER to the Multimax.
Keep the same filename on both platforms.
17. Without entering it, what FTP command would you enter to
change the remote computer working directory?
18. Enter the FTP command to list the contents of the local
computer working directory.
20. Close the connection with the CYBER and exit FTP.
27. Are you confused? Logout of the Multimax and the Annex.
NOTES
‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹
8. INTRODUCTION TO vi
The next progression was an editor called ex. The ex editor had
some distinct advantages over ed. It allowed you to display an
entire screen of text instead of just one line at a time. While
in the ex editor, you could give the command vi (for visual
mode). Users used the visual mode so much that developers of ex
made it possible to use the display editing feature without
having to enter ex and then vi. They called the new facility
simply vi.
The vi editor does its work in a work buffer. When you start vi,
it copies the disk file into the work buffer. During the editing
session, changes are made to this copy. The contents of the disk
file are not changed until you write the contents of the work
buffer to the disk file.
…ÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕª
∫ Command Format: vi <file1> ∫
∫ ∫
∫ file1 - the filename to edit ∫
»ÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕº
Your screen is cleared, then the first lines of the file are
displayed, and the cursor is positioned at the top of the screen.
The bottom line of your screen is reserved for certain command
mode activities and for error and status messages and does not
contain any of the file's text. If the file already exists, the
bottom line lists the filename in quotes and the number of lines
and characters it contains. If the file is new, "New file" is
displayed next to the filename. If the file does not fill an
entire screen, a tilde (~) character appears in the leftmost
column of any blank lines.
cursor positioning
entering text mode
moving, copying, and deleting text
storing changes
quitting
Whenever you wish to return to command mode, or are unsure of
what mode you are in, press the Esc key.
Esc can be entered any number of times without harm. The Esc key
on the VT terminals is the Ctrl-3 combination. On the PC, it is
the key marked Esc.
8.1 vi: Cursor Positioning
k up one line
CAUTION NOTE: If you hold the arrow key down to move quickly to
another area of the text, a line might be inserted
into your file.
8.2 vi: Text Mode
Copying text is performed using one of the "yank and put" command
pairs. The most straight forward command sequence for copying
is:
or
2. Delete and put:
The Undo command will reverse the last command you just entered.
It will restore text that you have changed or deleted by mistake.
The undo command will undo only the most recently changed text.
…ÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕª
∫ Command Format: u ∫
∫ ∫
∫ u - undo the last change ∫
∫ ∫
∫ U - restore the current line to the way it was before you ∫
∫ started changing it, even if several changes were made ∫
∫ ∫
»ÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕº
If you delete a line and then change a word, undo will restore
the changed word but will not restore the line.
8.7 vi: Recovering Text After a Crash
You can often recover text that would have been lost because of a
system crash. When the system has been brought back up enter the
following command to see if the system saved a copy of your work
buffer:
Example:
.................................................................
. $vi -r filename .
.................................................................
If your work buffer was saved, you will be editing a recent copy
of the work buffer. Use the w command to write the edited
version to the disk file.
Commands to save (write) text and to quit are entered from the
Last Line Mode. The Last Line Mode is entered by entering a
colon (:) character from the command mode.
To save changes without exiting vi, enter:
Example:
.................................................................
. :w .
.................................................................
Example:
.................................................................
. :w /user0/rharding/temp .
.................................................................
Now you can exit vi and not lose any of your work. The editing
session is saved in the file /user/rharding/temp.
Example:
.................................................................
. :q! .
.................................................................
Example:
.................................................................
. :wq .
.................................................................
The w command will write the work buffer to the disk file. The q
command will exit the editor. The shell prompt ($) will be
displayed after the file has been saved and the editor exited.
8.9 Other vi Commands
To save the file you are editing under a different name, use:
Example:
.................................................................
. :w newfile .
.................................................................
Example:
.................................................................
. :r filename .
.................................................................
Example:
.................................................................
. :r !shell-cmd .
.................................................................
Example:
.................................................................
. :!shell-cmd .
.................................................................
7. Move to the end of the file and insert a new line after it
that contains the following text:
fi
10. Add the following text after the last line of the file.
rm ./temp$$
12. Create a file with a name of your own choice. Insert the
output from the UNIX command ls -la . Save your change and
exit vi.
13. Edit the file you just created. Go to the end of the file
and without leaving vi, display a listing of the directory
/user0/teacher. How do you return to the editing session?
Did the listing get inserted into your editing session?
13. What is the option to recover your changes after a system
crash?
9.1 Assist
2. Tutorials
…ÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕª
∫ Command Format: assist [name] ∫
∫ assist [-s] ∫
∫ assist [-c name] ∫
∫ ∫
∫ name - invoke an assist-supported UNIX system or ∫
∫ walkthru for name. ∫
∫ ∫
∫ -s - reinvoke the assist setup module to check or ∫
∫ modify the terminal variable. ∫
∫ ∫
∫ -c name - invoke the version of name that is in the ∫
∫ current directory. ∫
»ÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕº
Sample session:
.................................................................
. $assist .
.................................................................
Sample session:
.................................................................
. $assist -s .
.................................................................
This command will also allow you to recheck your terminal setup.
Ctrl-D - exit
Summary Workshop
and
Course Evaluation
NOTES
‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹
APPENDIX A: DENVER OFFICE LOGIN SEQUENCE
⁄ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒø
≥ WELCOME TO THE B.O.R. NETWORK P/S:B ≥
≥ SYSTEMS PRESENTLY AVAILABLE ARE: ≥
≥ ≥
≥ **SYSTEM** **NAME** ≥
≥ ≥
≥ VAX 8300'S VAX ≥
≥ CYBER/CDCNET F.E. CDC ≥
≥ ENCORE/UNIX MAX ≥
≥ OUT DIAL OD ≥
≥ ≥
≥ TO SELECT A SYSTEM, ENTER THE SYSTEM ≥
≥ NAME AND CARRIAGE RETURN AT NEXT ≥
≥ PROMPT. ≥
≥ ≥
≥ CHANNEL 04/010. ENTER RESOURCE MAX ≥
≥ CONNECTED TO 04/052 ≥
¿ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒŸ
⁄ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒø
≥ ≥
≥ Annex Command Line Interpreter * Copyright 1988 Xylogics, Inc. ≥
≥ ≥
≥ ***WARNING***Unauthorized access to U.S. Government computers ≥
≥ is punishable by fine and/or imprisonment. ***WARNING*** ≥
≥ annex: c domax1 ≥
≥ login: your username(Ret) ≥
≥ Password: your password(Ret) ≥
≥ UNIX System V Release ax.2.2o ns32332 ≥
≥ domax1 ≥
≥ Copyright (c) 1984 AT&T ≥
≥ All Rights Reserved ≥
≥ ***WARNING***Unauthorized access to/use of this U.S. Government ≥
≥ computer is punishable by fine and/or imprisonment. ***WARNING***≥
¿ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒŸ
NOTES
‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹
APPENDIX B: GREAT PLAINS LOGIN SEQUENCE
PRESS (Ret)
⁄ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒø
≥ WARNING ****** WARNING ****** WARNING ****** WARNING ****** WARNING ≥
≥ PUBLIC LAW 99-474 PROHIBITS UNAUTHORIZED USE OF THIS U.S. GOVERNMENT ≥
≥ COMPUTER SYSTEM AND/OR SOFTWARE. PUNISHMENT INCLUDES FINES AND UP TO ≥
≥ 10 YEARS IN PRISON. REPORT VIOLATIONS TO THE SYSTEM SECURITY OFFICER. ≥
≥ WARNING ****** WARNING ****** WARNING ****** WARNING ****** WARNING ≥
≥ ≥
≥ ≥
≥ ENTER RESOURCE A - BIL640, B - BIL751, OA - BIL630, DEN - DENVER CYBERS ≥
≥ FOR STATUS OF COMPUTER SYSTEMS CALL (406) 657-6828 OR FTS 585-6828 ≥
≥ FOR EMERGENCY AND AFTER HOURS CALL (406) 255-6932 ≥
≥ ≥
≥ CHANNEL 02/035. ENTER RESOURCE DEN(Ret) ≥
≥ CONNECTED TO 02/079 ≥
≥ ≥
≥ WELCOME TO THE B.O.R. NETWORK P/S:B ≥
≥ SYSTEMS PRESENTLY AVAILABLE ARE: ≥
≥ ≥
≥ **SYSTEM** **NAME** ≥
≥ ≥
≥ VAX 8300'S VAX ≥
≥ CYBER/CDCNET F.E. CDC ≥
≥ CENTER ASC ≥
≥ ENCORE/UNIX MAX ≥
≥ TO SELECT A SYSTEM, ENTER THE SYSTEM ≥
≥ CARRIAGE RETURN AT NEXT ≥
≥ PROMPT. ≥
≥ ≥
≥ CHANNEL 02/079. ENTER RESOURCE MAX(Ret) ≥
≥ CONNECTED TO 06/025 ≥
¿ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒŸ
⁄ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒø
≥ ≥
≥ Annex Command Line Interpreter * Copyright 1988 Xylogics, Inc. ≥
≥ ≥
≥ ***WARNING***Unauthorized access to U.S. Government computers ≥
≥ is punishable by fine and/or imprisonment. ***WARNING*** ≥
≥ annex: c domax1 ≥
≥ login: your username(Ret) ≥
≥ Password: your password(Ret) ≥
≥ UNIX System V Release ax.2.2o ns32332 ≥
≥ domax1 ≥
≥ Copyright (c) 1984 AT&T ≥
≥ All Rights Reserved ≥
≥ ***WARNING***Unauthorized access to/use of this U.S. Government ≥
≥ computer is punishable by fine and/or imprisonment. ***WARNING***≥
¿ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒŸ
ENTER PCPLUS(Ret)
⁄ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒø
≥ | ≥
≥ COMMUNICATION SERVICES | PROCOMM PLUS ADD SERVICES MENU ≥
≥ ON NETWORK | ≥
≥ | ≥
≥ GENERAL SPECIFIC SERVER| UP/DOWN ARROW ..Highlight Services ≥
≥________________________| ≥
≥ MICOM * * | ENTER ....Connect Highlighted Services≥
≥ VAX_19.2 * * | ≥
≥ MI24 * * | PgPd .....Scroll Up One Page ≥
≥ ADMICOM * * | ≥
≥ | PgPn .....Scroll Down One Page ≥
≥ | ≥
≥ | Home .....First Service ≥
≥ | ≥
≥ | End ......Last Service ≥
≥ | ≥
≥ | Alt-E ....Expand/Contract Services ≥
≥ | ≥
≥ | Alt-M ....Manual Connect ≥
≥ | ≥
≥ | Alt-X ....Exit PROCOMM PLUS ≥
≥ | ≥
≥ | Alt-Z ....Help ≥
¿ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒŸ
⁄ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒø
≥ THIS IS THE LOWER COLORADO REGIONAL OFFICE INSTANET 6600 ≥
≥ RESOURCES AVAILABLE ≥
≥ BLD460 ≥
≥ BLD732 ≥
≥ BLDT50 ≥
≥ DEN (1200BPS) ≥
≥ DEN2 (2400BPS) ≥
≥ OUTDIAL (1200 BPS) ≥
≥ TELEBIT (1400 BPS OUTDIAL) ≥
≥ VAX (19.2 lines only) ≥
≥ CHANNEL 02/008. ENTER RESOURCE ≥
¿ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒŸ
ENTER DEN(Ret)
⁄ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒø
≥ You are accessing the Denver MICOM through the Boulder City ≥
≥ MICOM. Please remember to hit the break key three times ≥
≥ after logging off. The first DISCONNECTED comes from. The ≥
≥ second DISCONNECTED comes from Boulder City. This will assure≥
≥ that other users can connect when you are finished. ≥
¿ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒŸ
⁄ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒø
≥ **SYSTEM** **NAME** ≥
≥ ≥
≥ VAX 8300'S VAX ≥
≥ CYBER/CDCNET F.E. CDC ≥
≥ ASC/CORP. CENTER ASC ≥
≥ ENCORE/UNIX MAX ≥
≥ ≥
≥ TO SELECT A SYSTEM, ENTER THE SYSTEM ≥
≥ NAME AND CARRIAGE RETURN AT NEXT ≥
≥ PROMPT. ≥
≥ ≥
≥ CHANNEL 02/079. ENTER RESOURCE MAX(Ret) ≥
≥ CONNECTED TO 06/025 ≥
¿ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒŸ
⁄ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒø
≥ ≥
≥ Annex Command Line Interpreter * Copyright 1988 Xylogics, Inc. ≥
≥ ≥
≥ ***WARNING***Unauthorized access to U.S. Government computers ≥
≥ is punishable by fine and/or imprisonment. ***WARNING*** ≥
≥ annex: c domax1 ≥
≥ login: your username(Ret) ≥
≥ Password: your password(Ret) ≥
≥ UNIX System V Release ax.2.2o ns32332 ≥
≥ domax1 ≥
≥ Copyright (c) 1984 AT&T ≥
≥ All Rights Reserved ≥
≥ ***WARNING***Unauthorized access to/use of this U.S. Government ≥
≥ computer is punishable by fine and/or imprisonment. ***WARNING***≥
¿ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒŸ
TYPE PCOMN(Ret)
⁄ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒø
≥ ⁄ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒø ≥
≥ ⁄ƒƒƒƒƒƒƒ¥ Sacramento Connect Menu √ƒƒƒƒƒƒƒƒƒø ≥
≥ ≥ ¿ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒŸ ≥ ≥
≥ ≥ ≥ ≥
≥ ≥ ≥ ≥
≥ ≥ 1) Connect to the Sacramento VAX 8300 (USR) ≥ ≥
≥ ≥ ≥ ≥
≥ ≥ 2) Connect to the Sacramento VAX 780 (CVOCO) ≥ ≥
≥ ≥ ≥ ≥
≥ ≥ 3) Connect to the Sacramento ENCORE ≥ ≥
≥ ≥ ≥ ≥
≥ ≥ 4) Connect to the Sacramento (TCP/IP) NETWORK ≥ ≥
≥ ≥ ≥ ≥
≥ ≥ 5) Manual Setup/Connections ≥ ≥
≥ ≥ ≥ ≥
≥ ≥ D) Connect to the DENVER Computers ≥ ≥
≥ ≥ ≥ ≥
≥ ≥ E) EXIT to DOS ≥ ≥
≥ ¿ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒŸ ≥
¿ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒŸ
PRESS D(Ret)
⁄ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒø
≥ ⁄ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒø ≥
≥ ⁄ƒƒƒƒƒƒƒ¥ Denver Connect Menu √ƒƒƒƒƒƒƒƒƒø ≥
≥ ≥ ¿ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒŸ ≥ ≥
≥ ≥ ≥ ≥
≥ ≥ ≥ ≥
≥ ≥ 1) Connect to the Denver VAX 8300 (USR) ≥ ≥
≥ ≥ ≥ ≥
≥ ≥ 2) Connect to the Denver CYBER AA & EE ≥ ≥
≥ ≥ ≥ ≥
≥ ≥ 3) Connect to the Denver ENCORE ≥ ≥
≥ ≥ ≥ ≥
≥ ≥ 4) Connect to the Denver IBM (FFS) ≥ ≥
≥ ≥ ≥ ≥
≥ ≥ 5) Connect to Sacramento Computers ≥ ≥
≥ ≥ ≥ ≥
≥ ≥ E) EXIT to DOS ≥ ≥
≥ ¿ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒŸ ≥
¿ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒŸ
PRESS 3(Ret)
⁄ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒø
≥ hosts ≥
≥ Host Name System Status Load Factor Inet Addr ≥
≥ ==================================================================== ≥
≥ domax0 up 0.46 137.77.1.2 ≥
≥ domax1 up 1.23 137.77.1.3 ≥
≥ dosun0 up 1.28 137.77.1.5 ≥
≥ erc830 up 0.36 137.77.1.4 ≥
≥ annex: c domax0 ≥
≥ login: your username(Ret) ≥
≥ Password: your password(Ret) ≥
≥ UNIX System V Release ax.2.2j ns32332 ≥
≥ domax0 ≥
≥ Copyright (c) 1984 AT&T ≥
≥ All Rights Reserved ≥
≥ ***WARNING***Unauthorized access to/use of this U.S. Government ≥
≥ computer is punishable by fine and/or imprisonment. ***WARNING***≥
≥ ≥
¿ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒŸ
TYPE PCOM(Ret)
PRESS (Ret)
⁄ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒø
≥ NAME OF RESOURCE: DEN(Ret) ≥
≥ ≥
≥ **SYSTEM** **NAME** ≥
≥ ≥
≥ VAX 8300'S VAX ≥
≥ CYBER/CDCNET F.E. CDC ≥
≥ ASC/CORP. CENTER ASC ≥
≥ ENCORE/UNIX MAX ≥
≥ ≥
≥ TO SELECT A SYSTEM, ENTER THE SYSTEM ≥
≥ NAME AND CARRIAGE RETURN AT NEXT ≥
≥ PROMPT. ≥
≥ ≥
≥ CHANNEL 02/079. ENTER RESOURCE MAX(Ret) ≥
≥ CONNECTED TO 06/025 ≥
¿ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒŸ
⁄ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒø
≥ ≥
≥ Annex Command Line Interpreter * Copyright 1988 Xylogics, Inc. ≥
≥ ≥
≥ ***WARNING***Unauthorized access to U.S. Government computers ≥
≥ is punishable by fine and/or imprisonment. ***WARNING*** ≥
≥ annex: c domax1 ≥
≥ login: your username(Ret) ≥
≥ Password: your password(Ret) ≥
≥ UNIX System V Release ax.2.2o ns32332 ≥
≥ domax1 ≥
≥ Copyright (c) 1984 AT&T ≥
≥ All Rights Reserved ≥
≥ ***WARNING***Unauthorized access to/use of this U.S. Government ≥
≥ computer is punishable by fine and/or imprisonment. ***WARNING***≥
¿ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒŸ
NOTES
‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹
APPENDIX E: PACIFIC NORTHWEST LOGIN SEQUENCE
⁄ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒø
≥ ******************************* NOTICE ******************************* ≥
≥ USE OF GOVERNMENT COMPUTER RESOURCES AND DATA IS RESTRICTED TO OFFICIAL ≥
≥ GOVERNMENT BUSINESS. FAILURE TO COMPLY COULD RESULT IN DISCIPLINARY ≥
≥ ACTION OR PROSECUTION UNDER FEDERAL LAW. REPORT UNAUTHORIZED USE OR ≥
≥ ACCESS TO THE ADP SECURITY OFFICER AT (208)334-1746 OR (FTS)554-1746. ≥
≥ ≥
≥ C = CYBER ≥
≥ H = HYDROMET ≥
≥ P = OUT DIAL ≥
≥ V = VAX BOISE ≥
≥ Y = YAKIMA VAX ≥
≥ ≥
≥ CHANNEL 02/014. ENTER RESOURCE: C(Ret) ≥
≥ CONNECTED TO CHANNEL 03/094 ≥
¿ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒŸ
⁄ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒø
≥ **SYSTEM** **NAME** ≥
≥ ≥
≥ VAX 8300'S VAX ≥
≥ CYBER/CDCNET F.E. CDC ≥
≥ ASC/CORP. CENTER ASC ≥
≥ ENCORE/UNIX MAX ≥
≥ ≥
≥ TO SELECT A SYSTEM, ENTER THE SYSTEM ≥
≥ NAME AND CARRIAGE RETURN AT NEXT ≥
≥ PROMPT. ≥
≥ ≥
≥ CHANNEL 02/079. ENTER RESOURCE MAX(Ret) ≥
≥ CONNECTED TO 06/025 ≥
¿ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒŸ
PRESS (Ret) TWICE
⁄ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒø
≥ ≥
≥ Annex Command Line Interpreter * Copyright 1988 Xylogics, Inc. ≥
≥ ≥
≥ ***WARNING***Unauthorized access to U.S. Government computers ≥
≥ is punishable by fine and/or imprisonment. ***WARNING*** ≥
≥ annex: c domax1 ≥
≥ login: your username(Ret) ≥
≥ Password: your password(Ret) ≥
≥ UNIX System V Release ax.2.2o ns32332 ≥
≥ domax1 ≥
≥ Copyright (c) 1984 AT&T ≥
≥ All Rights Reserved ≥
≥ ***WARNING***Unauthorized access to/use of this U.S. Government ≥
≥ computer is punishable by fine and/or imprisonment. ***WARNING***≥
¿ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒŸ
PRESS (Ret)
⁄ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒø
≥ Server> C MICOM2400(Ret) ≥
≥ Server -010- Session 1 connected. ≥
¿ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒŸ
PRESS (Ret)
⁄ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒø
≥ SLC PORT SELECTOR ≥
≥ CHANNEL 01/091. ENTER HOST: DEN(Ret) ≥
≥ CONNECTED TO 01/014. ≥
¿ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒŸ
⁄ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒø
≥ **SYSTEM** **NAME** ≥
≥ ≥
≥ VAX 8300'S VAX ≥
≥ CYBER/CDCNET F.E. CDC ≥
≥ ASC/CORP. CENTER ASC ≥
≥ ENCORE/UNIX MAX ≥
≥ ≥
≥ TO SELECT A SYSTEM, ENTER THE SYSTEM ≥
≥ NAME AND CARRIAGE RETURN AT NEXT ≥
≥ PROMPT. ≥
≥ ≥
≥ CHANNEL 02/079. ENTER RESOURCE MAX(Ret) ≥
≥ CONNECTED TO 06/025 ≥
¿ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒŸ
PRESS (Ret) TWICE
⁄ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒø
≥ ≥
≥ Annex Command Line Interpreter * Copyright 1988 Xylogics, Inc. ≥
≥ ≥
≥ ***WARNING***Unauthorized access to U.S. Government computers ≥
≥ is punishable by fine and/or imprisonment. ***WARNING*** ≥
≥ annex: c domax1 ≥
≥ login: your username(Ret) ≥
≥ Password: your password(Ret) ≥
≥ UNIX System V Release ax.2.2o ns32332 ≥
≥ domax1 ≥
≥ Copyright (c) 1984 AT&T ≥
≥ All Rights Reserved ≥
≥ ***WARNING***Unauthorized access to/use of this U.S. Government ≥
≥ computer is punishable by fine and/or imprisonment. ***WARNING***≥
¿ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒŸ
⁄ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒø
≥ CONNECTED TO 01/044 ≥
≥ WELCOME TO THE B.O.R. NETWORK P/S:C ≥
≥ SYSTEMS PRESENTLY AVAILABLE ARE: ≥
≥ ≥
≥ **SYSTEM** **NAME** ≥
≥ ≥
≥ CYBER SYSTEMS ≥
≥ (AA OR EE) ≥
≥ VAX CLUSTER DEN ≥
≥ ≥
≥ OUT-DIAL MODEM OD ≥
≥ ≥
≥ TO SELECT A SYSTEM,ENTER THE SYSTEM ≥
≥ NAME AND CARRIAGE-RETURN AT NEXT ≥
≥ PROMPT. ≥
≥ ≥
≥ CHANNEL 02/026. ENTER RESOURCE DEN(Ret) ≥
≥ CONNECTED TO 01/051 ≥
≥ ≥
≥ **SYSTEM** **NAME** ≥
≥ ≥
≥ VAX 8300'S VAX ≥
≥ CYBER/CDCNET F.E. CDC ≥
≥ ASC/CORP. CENTER ASC ≥
≥ ENCORE/UNIX MAX ≥
≥ ≥
≥ TO SELECT A SYSTEM, ENTER THE SYSTEM ≥
≥ NAME AND CARRIAGE RETURN AT NEXT ≥
≥ PROMPT. ≥
≥ ≥
≥ CHANNEL 02/079. ENTER RESOURCE MAX(Ret) ≥
≥ CONNECTED TO 06/025 ≥
¿ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒŸ
PRESS (Ret) TWICE
⁄ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒø
≥ ≥
≥ Annex Command Line Interpreter * Copyright 1988 Xylogics, Inc. ≥
≥ ≥
≥ ***WARNING***Unauthorized access to U.S. Government computers ≥
≥ is punishable by fine and/or imprisonment. ***WARNING*** ≥
≥ annex: c domax1 ≥
≥ login: your username(Ret) ≥
≥ Password: your password(Ret) ≥
≥ UNIX System V Release ax.2.2o ns32332 ≥
≥ domax1 ≥
≥ Copyright (c) 1984 AT&T ≥
≥ All Rights Reserved ≥
≥ ***WARNING***Unauthorized access to/use of this U.S. Government ≥
≥ computer is punishable by fine and/or imprisonment. ***WARNING***≥
¿ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒŸ
at -r xx remove at job xx
ls -C list in columns
sh Bourne shell
Special Commands
Esc return to command mode
u undo last command
. repeat last insert, delete or put command
Cursor Positioning
N move to line N
N+ down N lines
N- up N lines
^D down one screen
^U up one screen
k up one line
j down one line
^ beginning of line
$ end of line
Nw N words ahead
Nb back N words
w word ahead
b back one word
e end of word
h backspace
l forward one space
arrow keys space left or right, go up or down one line
Searches
Deleting Text
Copying Text
NY yank N lines
Y yank one line
Nyw yank N words
yw yank one word
Global Operations
:x,ys/old/new/g
on lines x through y, change old to new
:x,yg/pattern/d
delete any line from x toy that has the string
pattern
NOTES
‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹
APPENDIX J: vi COMMANDS REFERENCE
NAME
vi - screen-oriented (visual) display editor based on ex
SYNOPSIS
vi [ -t tag ] [ -r file ] [ -L ] [ -wn ] [ -R ] [ -x ] [ -C
] [ -ccommand ] file ...
view [ -t tag ] [ -r file ] [ -L ] [ -wn ] [ -R ] [ -x ] [
-C ] [ -ccommand ] file ...
vedit [ -t tag ] [ -r file ] [ -L ] [ -wn ] [ -R ] [ -x ] [
-C ] [ -ccommand ] file ...
DESCRIPTION
vi (visual) is a display-oriented text editor based on an
underlying line editor ex(1). It is possible to use the
command mode of ex from within vi and vice-versa. The visual
commands are described on this manual page; how to set
options (like automatically numbering lines and
automatically starting a new output line after a carriage
return) and all ex(1) line editor commands are described on
the ex(1) manual page.
INVOCATION
The following invocation options are interpreted by vi:
-t tag Edit the file containing the tag and position the
cursor at its definition. The file (tags)
containing the tag is found in the current directory
or in /usr/lib/tags. Below is an example of a tags
file:
VI MODES
Command Normal and initial mode. Other modes return to
command mode upon completion. ESC (escape) is used
to cancel a partial command.
Last line
Reading input for : / ? or !; terminate with CR to
execute, interrupt to cancel.
COMMAND SUMMARY
In the descriptions, CR stands for carriage return and ESC
stands for the escape key.
Sample Commands
line/column number z G |
scroll amount D U
repeat effect most of the rest
Interrupting, Canceling
ESC end insert or incomplete cmd
DEL (delete or rubout) interrupts
L reprint screen if DEL scrambles it
R reprint screen if L is -> key
File Manipulation
ZZ if file is modified, write and exit;
otherwise, exit
:wCR write back changes
:w!CR forced write, if permission originally
not valid
:qCR quit
:q!CR quit, discard changes
:e nameCR edit file name
:e!CR reedit, discard changes
:e + nameCR edit, starting at end
:e +n filename CR edit starting at line n
:e #CR edit alternate file
:e! #CR edit alternate file, discard changes
:w nameCR write file name
Line Positioning
H top line on screen
L last line on screen
M middle line on screen
+ next line, at first non-white
- previous line, at first non-white
CR return, same as +
| or j next line, same column
| or k previous line, same column
Character Positioning
first non-white-space character
0 beginning of line
$ end of line
l or -> forward
h or <- backwards
H same as <- (backspace)
space same as -> (space bar)
fx find next x
Fx find previous x
tx move to character prior to next x
Tx move to character following previous x
; repeat last f F
, repeat last t T
n| to specified column
% find matching () { or }
Operators
Operators are followed by a cursor motion, and affect all
text that would have been moved over. For example, since w
moves over a word, dw deletes the word. Double the
operator, e.g., dd to affect whole lines.
d delete
c change
y yank lines to buffer
< left shift
> right shift
! filter through command
Miscellaneous Operations
C change rest of line (c$)
D delete rest of line (d$)
s substitute chars (cl)
S substitute lines (cc)
J join lines
x delete characters (dl)
X ... before cursor (dh)
Y yank lines (yy)
Yank and Put
Put inserts the text most recently deleted or yanked;
however, if a buffer is named (using the ASCII lower-case
letters a - z), the text in that buffer is put instead.
AUTHOR
vi and ex were developed by The University of California,
Berkeley California, Computer Science Division, Department
of Electrical Engineering and Computer Science.
FILES
/tmp default directory where temporary
work files are placed; it can be
changed using the directory option
(see the ex(1) set command)
/usr/lib/terminfo/?/* compiled terminal description
database
/usr/lib/.COREterm/?/* subset of compiled terminal
description database, supplied on
hard disk
NOTES
Two options, although they continue to be supported, have
been replaced in the documentation by options that follow
the Command Syntax Standard (see intro(1)). A -r option
that is not followed with an option-argument has been
replaced by -L and +command has been replaced by -c command.
SEE ALSO
ed(1), ex(1).
"Screen Editor Tutorial (vi)" in the UMAX V User's Guide.
WARNING
The encryption options are provided with the Security
Administration Utilities package, which is available only in
the United States.
Tampering with entries in /usr/lib/.COREterm/?/* or
/usr/lib/terminfo/?/* (for example, changing or removing an
entry) can affect programs such as vi(1) that expect the
entry to be present and correct. In particular, removing
the "dumb" terminal may cause unexpected problems.
BUGS
Software tabs using T work only immediately after the
autoindent.
NAME
ftp - Internet file transfer program
SYNOPSIS
ftp [ -v ] [ -d ] [ -i ] [ -n ] [ -g ] [ host ]
DESCRIPTION
ftp is the user interface to the DARPA File Transfer
Protocol. The program transfers files to and from a remote
network site.
! [ command [ args ] ]
Invoke an interactive shell on the local machine.
If there are arguments, the first is taken to be a
command to execute directly, with the rest of the
arguments as its arguments.
$ macro-name [ args ]
Execute the macro-name that was defined with
the macdef command. Arguments are passed to the
macro unglobbed.
account [ passwd ]
Supply a supplemental password required by a
remote system for access to resources once a login
has been successfully completed. If no argument
is included, the user will be prompted for an
account password in a non-echoing input mode.
cd remote-directory
Change the working directory on the remote machine
to remote-directory.
delete remote-file
Delete the file remote-file on the remote machine.
debug [ debug-value ]
Toggle debugging mode. If an optional debug-value
is specified, it is used to set the debugging
level. When debugging is on, ftp prints each
command sent to the remote machine, preceded by
the string --> .
dir [ remote-directory ] [ local-file ]
Print the contents of directory, remote-directory,
and, optionally, place the output in local-file.
If no directory is specified, the current working
directory on the remote machine is used. If no
local file is specified, or local-file is -,
output comes to the terminal.
disconnect
A synonym for close.
form format
Set the file transfer form to format. The default
format is file.
help [ command ]
Print a description of command. With no argument,
ftp prints a list of the known commands.
lcd [ directory ]
Change the working directory on the local machine.
If no directory is specified, changes to the
user's home directory.
ls [ remote-directory ] [ local-file ]
Print an abbreviated listing of the contents of a
directory on the remote machine. If remote-
directory is left unspecified, the current working
directory is used. If no local file is specified,
the output is sent to the terminal.
macdef macro-name
Define a macro. Subsequent lines are stored as
the macro macro-name; a null line (consecutive
newline characters in a file or carriage returns
from the terminal) terminates macro input mode.
There is a limit of 16 macros and 4096 total
characters in all defined macros. Macros remain
defined until a close command is executed. The
macro processor interprets "$" and "\" as special
characters. A "$" followed by a number (or
numbers) is replaced by the corresponding argument
on the macro invocation command line. A "$"
followed by an "i" signals that macro processor
that the executing macro is to be looped. On the
first pass "$i" is replaced by the first argument
on the macro invocation command line, on the
second pass it is replaced by the second argument,
and so on. A "\" followed by any character is
replaced by that character. Use the "\" to
prevent special treatment of the "$".
mdelete [ remote-files ]
Delete the specified files on the remote machine.
mget remote-files
Expand the remote-files on the remote machine and
do a get for each file name thus produced. See
glob for details on the filename expansion.
Resulting file names will then be processed
according to case, ntrans, and nmap settings.
Files are transferred into the local working
directory, which can be changed with
"lcd directory"; new local directories can be
created with "! mkdir directory".
mkdir directory-name
Make a directory on the remote machine.
mls remote-files local-file
Like ls, except multiple remote files may be
specified. If interactive prompting is on, ftp
will prompt the user to verify that the last
argument is indeed the target local file for
receiving mls output.
mode [ mode-name ]
Set the file transfer mode to mode-name. The
default mode is stream.
mput local-files
Expand wild cards in the list of local files given
as arguments and do a put for each file in the
resulting list. See glob for details of filename
expansion. Resulting file names will then be
processed according to ntrans and nmap settings.
remotehelp [ command-name ]
Request help from the remote FTP server. If a
command-name is specified, it is supplied to the
server as well.
rename [ from ] [ to ]
Rename, on the remote machine, the file from to
the file to.
reset Clear reply queue. This command re-synchronizes
command/reply sequencing with the remote FTP
server. Resynchronization may be necessary
following a violation of the FTP protocol by the
remote server.
rmdir directory-name
Delete a directory on the remote machine.
struct [ struct-name ]
Set the file transfer structure to struct-name.
The default structure is stream.
type [ type-name ]
Set the file transfer type to type-name. If no
type-name is specified, the current type is
printed. The default type is network ascii.
? [ command ]
A synonym for help.
ftp supports only the default values for the remaining file
transfer parameters: mode, form, and struct.
OPTIONS
Options can be specified at the command line, or to the
command interpreter.
machine name
Identify a remote machine name. The auto-login process
searches the .netrc file for a machine token that
matches the remote machine specified on the ftp command
line or as an open command argument. Once a match is
made, the subsequent .netrc tokens are processed,
stopping when the end of file is reached or another
machine token is encountered.
login name
Identify a user on the remote machine. If this token
is present, the "auto-login" process will initiate a
login using the specified name.
password string
Supply a password. If this token is present, the
"auto-login" process will supply the specified string
if the remote server requires a password as part of the
login process. Note that if this token is present in
the .netrc file, ftp will abort the "auto-login"
process if the .netrc is readable by anyone besides the
user.
account string
Supply an additional account password. If this token
is present, the "auto-login" process will supply the
specified string if the remote server requires an
additional account password, or the "auto-login"
process will initiate an ACCT command if it does not.
macdef name
Define a macro. This token functions like the ftp
macdef command functions. A macro is defined with the
specified name; its contents begin with the next .netrc
line and continue until a null line (consecutive new-
line characters) is encountered. If a macro named init
is defined, it is automatically executed as the last
step in the "auto-login" process.
SEE ALSO
csh(1).
ftpd(1M) in the UMAX V Administrator's Reference Manual.
BUGS
Correct execution of many commands depends upon proper
behavior by the remote server.
NAME
telnet - user interface to the TELNET protocol
SYNOPSIS
telnet [ host [ port ] ]
DESCRIPTION
The telnet command communicates with another host using the
TELNET protocol. If telnet is invoked without arguments, it
enters command mode, indicated by its prompt (for example,
telnet>). In this mode, it accepts and executes the
commands listed below. If it is invoked with arguments, it
performs an open command (see below) with those arguments.
Once a connection has been opened, telnet enters input mode.
The input mode entered will be either character at a time or
line by line depending on what the remote system supports.
COMMANDS
The following commands are available. Only enough of each
command to uniquely identify it need be typed (this is also
true for arguments to the mode, set, toggle, and display
commands).
open host [ port ]
Open a connection to the named host. If no port
number is specified, telnet attempts to contact a
TELNET server at the default port. The host
specification can be either a host name (see
hosts(4)) or an Internet address specified in "dot
notation" (see inet(3N)).
? [ command ]
Get help. With no arguments, telnet prints a help
summary. If a command is specified, telnet will
print the help information for just that command.
send arguments
Sends one or more special character sequences to
the remote host. The following are the arguments
which may be specified (more than one argument may
be specified at a time):
escape
Sends the current telnet escape character
(initially ^]).
synch
Sends the TELNET SYNCH sequence. This
sequence causes the remote system to discard
all previously typed (but not yet read) input.
This sequence is sent as TCP urgent data (and
may not work if the remote system is a 4.2 BSD
system -- if it doesn't work, a lower case r
may be echoed on the terminal).
brk
Sends the TELNET BRK (Break) sequence, which
may have significance to the remote system.
ip
Sends the TELNET IP (Interrupt Process)
sequence, which should cause the remote system
to abort the currently running process.
ao
Sends the TELNET AO (Abort Output) sequence,
which should cause the remote system to flush
all output from the remote system to the
user's terminal.
ayt
Sends the TELNET AYT (Are You There) sequence,
to which the remote system may or may not
choose to respond.
ec
Sends the TELNET EC (Erase Character)
sequence, which should cause the remote system
to erase the last character entered.
el
Sends the TELNET EL (Erase Line) sequence,
which should cause the remote system to erase
the line currently being entered.
ga
Sends the TELNET GA (Go Ahead) sequence, which
likely has no significance to the remote
system.
nop
Sends the TELNET NOP (No operation) sequence.
?
Prints out help information for the send
command.
interrupt
If telnet is in localchars mode (see toggle
localchars below) and the interrupt character
is typed, a TELNET IP sequence (see send ip
above) is sent to the remote host. The
initial value for the interrupt character is
taken to be the terminal's intr character.
quit
If telnet is in localchars mode (see toggle
localchars below) and the quit character is
typed, a TELNET BRK sequence (see send brk
above) is sent to the remote host. The
initial value for the quit character is taken
to be the terminal's quit character.
flushoutput
If telnet is in localchars mode (see toggle
localchars below) and the flushoutput
character is typed, a TELNET AO sequence (see
send ao above) is sent to the remote host.
The initial value for the flush character is
taken to be the terminal's flush character.
erase
If telnet is in localchars mode (see toggle
localchars below), and if telnet is operating
in character at a time mode, then when this
character is typed, a TELNET EC sequence (see
send ec above) is sent to the remote system.
The initial value for the erase character is
taken to be the terminal's erase character.
kill
If telnet is in localchars mode (see toggle
localchars below), and if telnet is operating
in character at a time mode, then when this
character is typed, a TELNET EL sequence (see
send el above) is sent to the remote system.
The initial value for the kill character is
taken to be the terminal's kill character.
eof
If telnet is operating in line by line mode,
entering this character as the first character
on a line will cause this character to be sent
to the remote system. The initial value of
the eof character is taken to be the
terminal's eof character.
localchars
If this is TRUE, then the flush, interrupt,
quit, erase, and kill characters (see set
above) are recognized locally, and transformed
into (hopefully) appropriate TELNET control
sequences (respectively ao, ip, brk, ec, and
el; see send above). The initial value for
this toggle is TRUE in line by line mode, and
FALSE in character at a time mode.
autoflush
If autoflush and localchars are both TRUE,
then when the ao, intr, or quit characters are
recognized (and transformed into TELNET
sequences; see set above for details), telnet
refuses to display any data on the user's
terminal until the remote system acknowledges
(via a TELNET Timing Mark option) that it has
processed those TELNET sequences. The initial
value for this toggle is TRUE if the terminal
user had not done an stty noflsh, otherwise
FALSE (see stty(1)).
autosynch
If autosynch and localchars are both TRUE,
then when either the intr or quit characters
is typed (see set above for descriptions of
the intr and quit characters), the resulting
TELNET sequence sent is followed by the TELNET
SYNCH sequence. This procedure should cause
the remote system to begin throwing away all
previously typed input until both of the
TELNET sequences have been read and acted
upon. The initial value of this toggle is
FALSE.
crmod
Toggle carriage return mode. When this mode
is enabled, most carriage return characters
received from the remote host will be mapped
into a carriage return followed by a line
feed. This mode does not affect those
characters typed by the user, only those
received from the remote host. This mode is
not very useful unless the remote host only
sends carriage return, but never line feed.
The initial value for this toggle is FALSE.
debug
Toggles socket level debugging (useful only to
the super-user). The initial value for this
toggle is FALSE.
options
Toggles the display of some internal telnet
protocol processing (having to do with TELNET
options). The initial value for this toggle
is FALSE.
netdata
Toggles the display of all network data (in
hexadecimal format). The initial value for
this toggle is FALSE.
?
Displays the legal toggle commands.
SEE ALSO
csh(1), ksh(1), rlogin(1N).
inet(3N), services(4), hosts(4) in the UMAX V Programmer's
Reference Manual.
telenetd(1M) in the UMAX V Administrator's Reference Manual.
BUGS
There is no adequate way for dealing with flow control.
On some remote systems, echo has to be turned off manually
when in line by line mode.
⁄ƒƒƒƒƒƒƒƒƒø
≥Cassette ≥
≥ Drive ≥
≥ ≥ ⁄ƒƒƒƒƒƒƒƒø ⁄ƒƒƒƒƒƒƒƒø
¿ƒƒƒƒ¬ƒƒƒƒŸ ≥ Disk ≥ ≥ Disk ≥
≥ ≥ Drive ≥ ≥ Drive ≥
≥ ≥ ≥ ≥ ≥
⁄ƒƒƒƒƒƒƒƒø ⁄ƒƒƒƒƒ¡ƒƒƒƒƒƒƒƒƒƒƒƒƒƒø¿ƒƒƒƒƒƒƒ¬Ÿ ¿ƒ¬ƒƒƒƒƒƒŸ
≥ Tape √ƒƒƒƒƒƒƒƒƒƒƒƒ¥ √ƒƒƒƒƒƒƒƒ¡ƒƒƒƒƒ¡ƒƒƒƒƒƒƒƒƒƒƒƒƒƒ
≥ Drive ≥ ≥ ≥
¿ƒƒƒƒƒƒƒƒŸ ≥ 4 X 2 MIP √ƒƒƒƒƒƒƒƒ¡ƒƒƒƒƒ¡ƒƒƒƒƒ¡ƒƒƒƒƒ¡ƒƒ
⁄ƒƒƒƒƒƒƒƒø ≥ ≥
≥ Tape ≥ ≥ Multimax 310 √ƒƒƒƒƒƒƒƒ¡ƒƒƒƒƒ¡ƒƒƒƒƒ¡ƒƒƒƒƒ¡ƒƒ
≥ Drive √ƒƒƒƒƒƒƒƒƒƒƒƒ¥ ≥
¿ƒƒƒƒƒƒƒƒŸ ≥ √ƒƒƒƒƒƒƒƒ¡ƒƒƒƒƒ¡ƒƒƒƒƒ¡ƒƒƒƒƒ¡ƒƒ ⁄ƒƒƒƒƒƒƒƒƒƒƒƒƒƒø
¿ƒƒ¬ƒƒƒƒƒƒƒƒƒƒƒƒ¬ƒƒƒƒŸ ≥ Port ≥
≥ ≥ ⁄ƒƒƒƒƒƒƒƒƒƒƒƒƒƒø ≥ Selector ≥
≥ √ƒƒƒƒƒƒƒƒ¥ Console ≥ ≥ ≥
≥ ⁄ƒƒƒƒ¡ƒƒƒƒƒƒø ≥ Hardcopy ≥ ¿ƒ¬ƒƒ¬ƒƒ¬ƒƒ¬ƒƒ¬Ÿ
≥ ≥ Console ≥ ≥ ≥ ≥ ≥ ≥ ≥ ≥ 32 Lines
≥ ≥ ≥ ¿ƒƒƒƒƒƒƒƒƒƒƒƒƒƒŸ ⁄ƒ¡ƒƒ¡ƒƒ¡ƒƒ¡ƒƒ¡ø
≥ ≥ CRT ≥ ≥ ≥
≥ ¿ƒƒƒƒƒƒƒƒƒƒƒŸ ≥ Annex 01 ≥
≥ ≥ ≥
≥ ¿ƒƒƒƒƒƒƒ¬ƒƒƒƒƒƒŸ
Ethernet ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ¡ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ¬ƒƒƒƒƒƒƒƒƒƒƒƒƒ¡ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ
⁄ƒƒƒƒƒ¡ƒƒƒƒƒø
≥ Annex 00 ≥
≥ ≥
¿ƒƒ¬ƒƒƒƒƒ¬ƒƒŸ
⁄ƒƒƒƒƒƒƒƒ¡ƒø ⁄ƒ¡ƒƒƒƒƒƒƒƒø
≥ mtlzr ≥ ≥ mt_600 ≥
≥ ≥ ≥ ≥
¿ƒƒƒƒƒƒƒƒƒƒŸ ¿ƒƒƒƒƒƒƒƒƒƒŸ
NOTES
‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹‹
APPENDIX N: BASIC UNIX REVIEW
Write the letter(s) of the UNIX component that best fit each
description.
. (dot)..................................................................................63
.. (dot dot).............................................................................63
Access modes.............................................................................37
Annex Commands
call..............................................................................16
hangup............................................................................21
BourneShell prompt........................................................................6
BSD UNIX..................................................................................2
Current working directory................................................................63
Expiration period........................................................................19
FTP Commands............................................................................108
!................................................................................116
?................................................................................123
cd...............................................................................119
close............................................................................121
get remote-file..................................................................113
help.............................................................................123
lcd..............................................................................115
ls...............................................................................120
open host........................................................................109
Password.........................................................................110
put..............................................................................117
quit.............................................................................122
status...........................................................................124
Kernel...................................................................................33
KornShell.................................................................................2
Mailx Commands...........................................................................74
?.................................................................................82
d.................................................................................80
S.............................................................................77, 78
MICOM....................................................................................14
Number links.............................................................................37
On-line manual pages.....................................................................25
Ownership and group affiliation..........................................................37
Parent...................................................................................64
Password.................................................................................19
Pathname.................................................................................57
PROCOMM+.................................................................................14
Protections..............................................................................34
Redirection..........................................................................94, 95
Root directory............................................................................4
Scrolling................................................................................10
Shell.....................................................................................1
Standard input...........................................................................93
Standard output..........................................................................93
Subdirectory.............................................................................61
System V UNIX.............................................................................2
TAB.....................................................................................153
TCP/IP..................................................................................107
Terminal nodes............................................................................3
UMAX.....................................................................................19
UNIX Commands
assist...........................................................................151
cancel............................................................................48
cat...............................................................................40
cd................................................................................61
chmod.............................................................................35
cp............................................................................49, 50
exit..............................................................................20
file..............................................................................39
lp................................................................................45
lpstat............................................................................47
ls................................................................................37
mkdir.............................................................................58
mv................................................................................62
pg................................................................................42
pwd...............................................................................57
rmdir.............................................................................59
tail..............................................................................43
UNIX filesystem...........................................................................3
UNIX Keyboard Function Commands
#..................................................................................9
@..................................................................................9
Ctrl-D............................................................................20
Ctrl-Q............................................................................10
Ctrl-S............................................................................10
Delete............................................................................10
Hold Screen.......................................................................10
UNIX Primer Plus........................................................................153
vi Commands
:!shell-cmd......................................................................147
:q!..............................................................................145
:r !shell-cmd....................................................................147
:r filename......................................................................147
:w...............................................................................145
:w newfile.......................................................................147
:wq..............................................................................146
Wildcards...............................................................................100