Web Content & Applications

Unix Guide - Printing

The lpr Command

The first thing to know is the lpr command. The basic syntax to print any file on any printing resource is

spot> lpr -P resource-name file-name

where resource-name is the name of the printing resource (ie, printer) and file-name is the name of the file to be printed. Unix print jobs are "spooled," which means the file specified by the lpr command is copied into a "spooling directory," where it is actually printed.

Learn more about Printing

spot> man printing

 

Unix Guide - OIT Unix Compilers

Compilers

This is an overview of how to compile programs on Unix machines. The examples are specific to the C compiler but can be applied to all Unix compilers. Note that compilers are available only on rintintin, rastro, and eddie--not on the information-only machines like spot. To find out which compilers are on a particular machine, type:

man -k compile

This command will produce a list of all the compilers that have manual pages and will indicate which sections address compilers. For example, on spot the output looks like this:

Unix Guide - Local Unix Conventions

Local Documents

This document is designed to introduce Boulder Campus users to local Unix conventions that they may have not seen on Unix systems at other sites. The directory

/usr/cns/doc

contains several files that explain OIT procedures, user responsibilities, and some third-party software documentation. In particular, Accounts, Disk Allocation, and User Responsibilities should be consulted.

Home Directory Conventions

The path to a user's home directory uses the following convention:

Unix Guide - Using the Online Manual

Launch man

To use the online Unix manual, enter the command man, followed by the subject you want to read about. For example, to find out nearly everything there is to know about the Unix command ls, which displays the contents of a directory, type man ls in response to the system prompt.

spot> man ls

For more information on the man command itself, type

Unix Guide - Getting Started

Logging In

To log in to your Unix account, enter your login name at the login: prompt and press RETURN

login: your-login-name

Or, on Macintosh's Terminal application you will enter:

ssh username@yourserver.colorado.edu

You will now see the Password: prompt

Password:

Enter your password exactly and press RETURN. Your password will not be displayed on the screen as you type it. Your login and password are case-sensitive.

Subscribe to Web Content & Applications