UNIX Quick Start Tutorial

Introduction

This tutorial will walk a beginning UNIX user through some of the basic features of the UNIX operating system.

Objectives

Topics

  1. How do I log in / log out? (10 minutes)
  2. How do I execute UNIX commands? (5 minutes)
  3. Vocabulary (5 minutes)
  4. More Information (5 minutes)

Overview

This tutorial has been developed to show new users how to get started in UNIX. Some topics in this tutorial will be familar to users of other operating systems, such as Microsoft Windows and Macintosh. Even if you are familar with other operating systems, you will still want to work through this tutorial to learn how these tasks are completed in UNIX.

How do I log in and log out?

UNIX is frequently installed on a network of many different computers. The Computer's Science Department's network includes hundreds of machines. For each user of this network, an "account" has been created for them by the administrator of the network. The Computer Systems Lab is responsible for maintaining and administrating many of the networks used by most (if not all) Computer Science students, teachers and researchers.

For example, all Computer Science students have been given an account on either one or both of the instructional machine networks connected to the main Computer Science network.

Practice Exercise

Note: This practice exercise assumes that your account has not been activated. If your account has been activated, you may skip step 3.

  1. Be sure that you have an account on the machine that you wish to use.
  2. If the screen is blank, the computer is in "sleep" mode. Move the mouse or press the [Shift] button to "wake-up" the computer. After a few seconds, a dialog box appears in the center of the screen.
  3. If you have not activated your account, you must do so at this time. If you know your account name and password, then you have already activated your account and you may skip this step.
  4. To activate your account:

    1. Type "newuser" in the user name field and press [Enter].
    2. Read all on-screen instructions carefully and follow the instructions exactly.
  5. Once your account has been activated, you will use your account name and password to gain access to your specific account on the network. The log-in dialog box is used to provide this information.
  6. Press [Enter] after typing both pieces of information for your account.
  7. You should see an empty "xterm" window, like this:

    empty xterm window

    You should also see the "logout" button and possibly a mailbox and clock in the upper righthand corner of your screen:

    logout button, mailbox and clock in upper right corner of monitor

    You are now ready to enter commands for your UNIX shell to execute. Commands are typed and entered at a command prompt in an xterm window.

    You can type "logout" to log out of UNIX. Or, you may left-click on the [Logout] button on your screen.


How do I execute UNIX Commands?

Most UNIX commands are run from within a shell. The shell program is started automatically when you login and provides a frame (window) inside the area of your monitor and a prompt for the command. Type the name of the command after the prompt and press [Enter].

Many commands allow you to type additional information after the command name that will change what the command does or what data it uses.

Practice Exercise

Note: This practice exercise assumes that you are logged in.

  1. Left-click anywhere on the desktop background and select xterm to open an xterm window.
  2. Type date and press [Enter] to display the current date.
  3. Type time and press [Enter] to display the current time.
  4. Type pwd and press [Enter] to display your current working directory name.
  5. Type ls and press [Enter] to display the contents of your current working directory.

How do I list the contents of a directory?

Summary

In this lesson you have learned about the UNIX on-line programmer’s manual.

  1. How do I log in and log out?
  2. How do I execute UNIX commands and run programs?
  3. Vocabulary.
  4. More Information.

As you work in UNIX and learn new commands, be sure to view the on-line documentation for more information.

Vocabulary

Command
A short text string that the operating system shell can execute.
Command-line
The line of an xterm window that commands are entered on.
Command-line prompt
The character(s) at the start of the command line. Used to indicate that the operating system is waiting for it’s next command from the user.
On-line help
The help system that is available by entering one of the help commands at the command-line prompt.

Where to Get More Information