Getting
Started on Athena Tutorial (AC-03)This document is designed to provide a hands-on introduction to Athena, MIT's academic computing environment, for new MIT students or other new users of Athena. This tutorial supplements the introductions provided in the Athena minicourses (offered during Orientation, IAP and during the semester) and in the Athena documentation.
With this tutorial, you can sit down at any Athena workstation and learn basic tasks. This document does not assume that you have any background with computers. It is useful if you have used computers before; it compares some Athena commands and concepts with Macintosh and DOS commands and concepts.
Note that this tutorial is only an introduction. None of the concepts or commands are covered thoroughly. When you have finished this tutorial, please refer to the other Athena documentation for further, more in-depth information. (It is especially important that all new users familiarize themselves with the Athena Rules of Use, which are listed in detail in Welcome to Athena.)
To learn about Athena using this tutorial--indeed, to use Athena at all--you need an Athena account. All MIT students (and most members of the MIT community) are eligible to get an Athena account. If you do not already have an account, directions for registering for an Athena account and choosing your username and password are in the pamphlet How to Register for an Athena Account, available in the Athena Consultants and User Accounts office (N42 1st Floor). The day after you register, you can use your account.
Once you have an account, find a workstation in any Athena cluster, and work your way through this tutorial.
The chapters of this tutorial are organized into specific tasks, so you can do as much or as little in one sitting as you like. The chapters build on each other, so you should work in order, although that's not necessary for all the chapters.
The mouse next to your keyboard is used to control the mouse pointer on your screen. The mouse pointer is usually shaped like an arrow, a letter "I," or a letter "X," depending on what program is running. As you move the mouse pointer around your screen, it changes shape as it enters different windows.
Use the mouse to select which window you want to work in, and to perform other actions. The following terms are used to describe mouse techniques:
The following styles and symbols help you use this tutorial.
Result: The expected results of the action appear in an indented environment.
athena% ls
Athena commands are case-sensitive. The ls command must be lowercase, and the "Public" directory is different from the "public" directory.
This chapter assumes you have already registered for an Athena account, as described in How to Register for an Athena Account, and that your account has been created.
Logging in is the process of identifying yourself to the Athena network and starting to work. Logging out disconnects you from the workstation when you end your session. To log in, you need a username and password.
You can log into the Athena system via a modem and a personal computer, but this tutorial only covers working at workstations in Athena clusters.
There are large clusters in the Student Center, in bldg 12, and on the 3rd floor of bldg 37. For a full list of clusters, see Athena Clusters Pocket Reference, available at the Copy Tech Center.
Result: The "login window" appears:
Figure 2-1: The Athena login window
Result: The cursor moves to the Password box.
The screen does not display your password as you type it.
Result: After a pause, this screen is displayed:
Figure 2-2:
The initial screen
If a window, not the console window, appears on your screen with a message from the system, move the mouse cursor into that window and click any mouse button to make it disappear once you have read it.
Logging out tells Athena that you have completed your session. Always log out when you are finished so the next person to use the workstation cannot access your personal workspace and files. Here are two common methods of logging out:
Figure 2-3: The
logout window
All information on Athena is stored in files that are organized into directories. Papers, programs, and mail messages are all stored in files. You can organize your own files into subdirectories, and you can explore Athena by browsing through public directories. This chapter covers several tasks that are common on most UNIX systems, including Athena:
Unlike the Macintosh, the window border changes color when the mouse pointer enters the window.
athena% ls
The ls command is like the dir command in MS-DOS.
Result: A list like the following appears:
Figure 3-1:
List of files
athena% more welcome
Press Return at the end of each command you type at the athena% prompt.
Result: The screen clears and the contents of the file appear:
Figure 3-2: Contents of the file "welcome"
Not all files are readable. For example, if you try to use more on an executable program instead of a text file, it will display nonsense.The more command works like more < in MS-DOS.
"Directories" on Athena work like "folders" on a Macintosh computer or MS-DOS directories.
When you log into Athena, the system puts you in your home directory, which is the area of Athena where your files are stored. Before you start moving between directories, you need to know where "home" is. The pathname for this directory looks like this (substituting your username for jarandom):
/afs/athena.mit.edu/user/j/a/jarandom
The / character separates directories and subdirectories in pathnames, like the \ character does in MS-DOS.
In shorthand, your home directory also looks like this:
/mit/jarandom
(These concepts are explained more fully in the document Working on Athena.) Finally, in Athena commands, you can use the ~ (tilde) character to refer to your home directory.
The "~" character is at the upper left corner of your keyboard. (On SUN workstations, it's at the upper right.
New Athena accounts come with several subdirectories already created for you.
Since Public is a subdirectory of your home directory, you can refer to it as any of the following:
Likewise, you can refer to other subdirectories in the same ways (including ~/Private).
To change to your home directory, no matter where you are, type:
athena% cd
The cp command is analagous to the copy command in MS-DOS.
athena% cp welcome intro athena% ls
Result: A new file "intro" exists, which is an exact copy of the file "welcome":
Figure 3-3:
Making a copy of the file "welcome" named "intro"
athena% cp welcome ~/Public athena% ls ~/Public
The "~/" indicates that "Public" is a subdirectory of your home directory.The ls command can also list files in other directories.
Result: A copy of the file "welcome" now exists in your "Public" directory as well as your home directory:
Figure 3-4:
Making a copy of "welcome" in your "Public"
subdirectory
athena% mv intro practice athena% ls
Result: The file "intro" is renamed to "practice". The file is no longer accessible under the name "intro".
Figure 3-5: Renaming the file "intro" to
"practice"
athena% mv practice ~/Public athena% ls ~/Public
Result: The file "practice" moves to your "Public" directory and no longer exists in your home directory.
Figure 3-6: Moving the file "practice" to the "Public"
subdirectory
athena% cd ~/Public athena% ls
Result: The files listed are the files you moved and copied to your Public directory in the Moving files section above.
The pwd command is equivalent to the cd command in MS-DOS.
athena% pwd
Result: The directory displayed should match:
/afs/athena.mit.edu/user/j/a/jarandom/Public
Figure 3-7:
Changing directories
athena% cd .. athena% pwd
The space is necessary between "cd" and "..", unlike MS-DOS.
Result: Your current working directory is now your home directory, where you started.
athena% cd athena% mkdir MyDir athena% ls
Result: A new directory, "MyDir", is created in your home directory.
Caution: Unlike files, directories are not recoverable with the undelete command.If the subdirectory is not empty, rmdir does not remove it. You need to delete the files in it first.
athena% rmdir MyDir athena% ls
Result: MyDir no longer exists.
Figure 3-8: Creating and removing the MyDir directory
athena% delete welcome athena% ls
Result: The file "welcome" is marked for eventual removal and is no longer shown.
Caution: Files erased more than three days are not recoverable; they are automatically purged. Use delete with care!
athena% undelete welcome athena% ls
Result: The file "welcome" has been restored:
Figure 3-9: Deleting and recovering the "welcome" file
The X Window System is a set of programs that runs behind the scenes on your Athena workstation and lets you divide your workstation's screen into one or more overlapping windows. The Working with Files chapter used an xterm window to list and manipulate files. This chapter has you:
These tasks are the same with every window, no matter what application is running in it.
athena% xclock & [1] 14540 athena%
When you use "&" after a command, the program runs in the background so you can type other commands (i.e., the athena% prompt returns right away instead of waiting for the command to finish).
Result: A job number (here, [1]) and process ID number (here, 14540) appear. The mouse pointer changes to a rectangular window outline.
Result: A new window appears with a clock in it.
Figure 4-1: Screen with a new xclock window
Alternate method: You can also start xclock from Dash: Dash >> Screen Accessories >> Analog Clock
Result: The mouse pointer changes to an arrow.
Result: The mouse pointer changes to a four-headed arrow, and the outline of the window moves with your mouse pointer.
Result: The xclock window moves to the new position.
Result: The mouse pointer changes to an arrow pointing to the edge.
Result: The outline of the edge of the window follows the mouse pointer.
Result: The window adjusts itself to the new outline.
Result: The mouse pointer changes to an arrow pointing into the corner.
Figure 4-2: Re-sizing the xclock window by the corners
To iconify a window means to replace it with a small symbol that represents that window (an icon). The icon remembers the size and location of the window, so when you restore the iconified window, it appears in its old location. Iconifying helps reduce screen clutter when you have several windows open.
"Iconifying" is also called "minimizing"; "iconify" is the most popular term among Athena users.
Result: The xclock window disappears and an xclock icon window appears in the lower left corner of your screen.
Figure 4-3: Xclock and Xclock icon
Result: The xclock window appears with the same size and position as before you iconified.
Emacs is the most commonly used text editor on Athena. This section has you:
You start Emacs in the same way you start most Athena applications--by issuing a command at your athena% prompt:
athena% emacs & [1] 14376 athena%
Result: The job message appears, as described in the Windows chapter, and the athena% prompt returns. The mouse pointer changes to a large rectangle.
Alternate method: You can also start Emacs from Dash: Text/Graphics >> Text >> Emacs
Result: An Emacs window appears, displaying copyright text:
Figure
5-1: The Emacs window
Type text to create the Emacs file:
You can edit text and fix mistakes using:
- the arrow keys, located toward the lower right of the keyboard
- the Backspace or Delete key located above the Return key
This is a sample Emacs document. Emacs is the default standard text editor on Athena Workstations. It is most commonly used for typing papers and letters, taking notes, creating e-mail messages, and editing text files.
Result: The copyright text disappears when you start typing.
Ctrl-x Ctrl-w is an example of a control key sequence. To type Ctrl-x, press and hold the Ctrl key and press x. (Like holding Shift to type a capital X.) Ctrl-x is often abbreviated C-x.
Result: The following prompt appears at the bottom of the Emacs window:
Write file: ~/
Write file: ~/sample
Result: You now have a new file in your home directory (~) called sample.
Figure
5-2: Saving a file
Result: The Emacs cursor moves to the end of the text.
Emacs is only one application on the Athena network. Other applications, such as EZ, LaTeX, and FrameMaker provide more formatting and publishing power than Emacs. There are applications for dealing with numbers, and other applications for locating information across the globe on the Internet.
To keep the changes you have made in the Emacs window, you need to "save" the working copy into your permanent file.
You do not need to specify the file name again. Emacs uses the file name you previously specified.
Result: Emacs responds at the bottom of its window that it wrote the file:
Wrote /afs/athena.mit.edu/user/j/r/jruser/sample
It is a good habit to save your work often using C-x C-s. That way, in case of a power failure or computer crash, you still have a recent copy of your work.
C-x C-w (write file) is equivalent to "Save As..." in many word processing programs. C-x C-s (save file) is equivalent to "Save."
When you are finished editing, save the final version and quit Emacs.
Result: If you have not made any changes to your text since the last time you saved it, the Emacs window disappears. If you have made changes to the file since your last save, Emacs does not exit immediately, but instead asks if you want to save changes before exiting. Look at the bottom of the window for this message if the Emacs window doesn't disappear.
Save File /afs/athena.mit.edu/user/j/r/jruser/sample? (y or n)
Electronic mail ("e-mail") is a way for users to send messages to each other. E-mail messages are just like memos, letters, or other documents, but you transmit them using Athena rather than on pieces of paper or diskettes. This chapter covers:
There are several different e-mail programs available on Athena. Your choice will depend largely on your preferences; in general, the different programs allow you to do the same tasks. The document Electronic Mail on Athena covers more detail, and also covers some of the different programs.
athena% comp
Result: The first time you use comp, it asks to create your Mail directory:
Your MH-directory "/afs/athena.mit.edu/user/j/a/jarandom/Mail" doesn't exist; Create it?
Result: The mail subdirectory is created in your home directory, and the mouse pointer changes to a rectangle.
Result: An Emacs window appears, displaying the blank message header:
Figure 6-1: The Emacs window for composing an e-mail message.
To send e-mail to most MIT users, use their usernames. To send to someone at another site, you'll need a longer address.
Result: The Emacs window contains this text:
To: jarandom Cc: Subject: test --------
E-mail makes it easy to communicate with people all over the globe!
Result: Emacs asks if you want to save the file:
Save file /mit/jarandom/Mail/draft? (y or n):
Result: The Emacs window disappears and the xterm window gives a What now? prompt.
Result: The message gets sent from your workstation to the "post office machine" of the user to whom it is addressed (in this case, yourself). The next section shows you how to pick up your e-mail from the post office.
athena% inc
Result: Your messages are picked up from the post office machine and filed in your inbox subdirectory. A "scan listing" of all the new messages appears, showing a message number, the date, the sender, and the beginning of the text.
1+ 05/01 jarandom@mit.edu test<<E-mail makes it 2 05/01 jarandom@mit.edu another test<<I think
athena% show
Result: The number of the current message appears, then the text of the current message appears.
athena% show 2
Zephyr is a way for users to send instantaneous messages to each other. When someone sends you a Zephyr message, it appears on your screen in its own window, known as a windowgram. Zephyr is the way to find someone or send a quick message to a person or group of people among the several hundred workstations scattered across campus. This chapter covers:
Zephyr lets you locate other users if they are logged in and using Zephyr at the same time as you.
athena% zlocate jarandom w20-575-3.MIT.EDU :0.0 Mon Aug 5 13:52:21 1996
athena% emacs ~/.anyone &
jarandom bjuser patdoe newfrosh
C-x C-s C-x C-c
Result: Znol tries to "zlocate" each username in your "~/.anyone" file. If the user is logged in and running Zephyr, their information is displayed. If they are not logged in, nothing is reported:
athena% znol jarandom: w20-575-3.MIT.EDU :0.0 Mon Aug 5 13:52:21 1996 bjuser: m37-318-3.MIT.EDU :0.0 Mon Aug 5 15:49:21 1996
athena% zwrite jarandom
Result: Zwrite responds with:
Type your message now. End with control-D or a dot on a line by itself.
Zephyr makes it easy to communicate with friends all over campus!
Type C-c to cancel the message.
. jarandom: Message sent athena%
Result: A windowgram appears on the screen of the recipient. In this example, the windowgram appears on your screen:
Figure 7-1: A
Zephyr windowgram
The World Wide Web is the vast collection of files and services accessible over the Internet via browsers such as Netscape and lynx. Web documents can include formatting, graphics, and links to other documents when read by browsers specifically designed for the Web. This chapter covers:
athena% add infoagents athena% netscape &
Alternate method: You can also start Netscape from Dash: Communication >> WorldWideWeb >> Netscape >> Netscape - MIT Home Page
Result: A Netscape window appears, displaying the MIT home page (note that the graphics on the MIT home page change frequently):
Figure 8-1:
The Netscape window with the MIT home page
Notice that some of the text on the MIT home page is underlined and highlighted (e.g., colored on a color monitor). These pieces of text are hypertext links.
Result: The Academics web page is displayed in the Netscape window:
Figure 8-2: The Netscape window with the Academics page displayed
Besides clicking on a hypertext link, you can also get to a specific Web page if you know its address. Web addresses are known as Uniform Resource Locators, URLs for short.
Result: An "Open Location:" window appears.
Figure 8-3: The Open URL dialog box
http://web.mit.edu/olh/Frosh/
Result: The Beginner's Guide to Athena page appears.
Figure 8-4: The Netscape window with The Beginner's Guide to Athena
To choose the links from this page, you can click on the buttons in the image, or on the text links farther down the page.
http://web.mit.edu/is/help/cert/
Result: Table of Contents Appears
Result: A Dialog Box Appears
Result: Another Dialog Box Appears
Result: Another Dialog Box Appears
Result: Another Dialog Box Appears
Result: Another Dialog Box Appears
Result: Another Dialog Box Appears
Result: The dialog box goes away.
Result: A dialog box appears
Result: A new document appears in your web browser
Result: A new document appears in your web browser
Result: A dialog box appears
Result: A new screen appears in your web browser.
The Dash menu bar at the top of the Athena workstation screen contains much useful information on using Athena.
Dash is especially useful for new Athena users who want to access a wide variety of programs. When Athena documentation refers to a Dash item, the menus and submenus are separated by >>. For example, to display a map of the Athena clusters from Dash, follow these menus: Help >> Help on Athena >> Athena Cluster Map.
This chapter describes some of the groups within Information Systems that provide special services specifically for the Athena user community:
The Athena training group offers free minicourses on essential Athena topics. Each minicourse is about an hour long and consists of a short lecture with examples covering interesting and useful features of Athena. The classes are free and require no pre-registration.
To get a minicourse schedule:
http://web.mit.edu/minidev/www/
Help >> Help on Athena >> Athena Minicourses
All of the Athena-generated end-user documents, are available at the Copy Tech Center, at no cost, in 11-004.
Most documentation about Athena is available right at your workstation via the Athena On-Line Help (OLH) documentation collection. To access OLH, type the following at the athena% prompt:
athena% help
Alternate method: You can also access OLH from Dash: Help >> Help on Athena >> On Line Help
The help command displays the Athena OLH home page in an appropriate WWW browser. If you already have a Netscape window open, you don't need to type help, you can go directly to URL:
http://web.mit.edu/olh/
The UNIX operating system comes with an extensive (but often highly technical) online documentation system. You access this system with the man command.
If you know the name of a command but do not know exactly how it works, you can see an online UNIX Programmer's Manual reference page for that command by using the man (manual) command at your athena% prompt. For example, to get the manual page about the man command itself, you would type:
athena% man man
This displays the first screenful of online information about the command. (To go on to the next page, press the Spacebar; if the display is not over but you want to quit, enter q or Ctrl-c.)
Each manual page gives a description of the command and lists all the options available with it. The online manual pages are written as reference documents for people who already know UNIX, so many of the man pages can seem overly technical. Nevertheless, some man pages are quite readable, and most provide thorough information.
You can usually reach an Athena User Consultant 24 hours a day, somewhere on campus, right from your workstation.
Please give as much detail as possible when asking a question. The more information you give, the more help the Consultant can give you. You can type help whenever you see the olc> prompt to get a list of OLC commands.