Miscellaneous Commands

Manual (man) pages

Command Effect
man command-name Displays the manual pages for the topic command-name.
man -k keyword Displays one-line summaries of the manual pages containing the string keyword.

Displaying the Current Date and Time

Command Effect
date Displays the current date and time

Printing

Command Effect
lpr myfile Prints the file myfile on the default printer.
lpr -Pmyprinter myfile Prints the file myfile on the printer named myprinter.
lpr -c# myfile Printer # copies of the file myfile.
lpr -d myfile Prints the file myfile, interpreting it as a DVI file.
lpr -Z duplex myfile Prints the file myfile double-sided (if the printer supports this feature).
lpq Displays the contents of the print queue. The -Pmyprinter argument is also accepted.
lprm -# Removes print request # (listed with lpq) from the print queue.

Getting Information on Users

Command Effect
finger username Displays information about the user username.
finger username@machine Displays information about the user username logged into the machine named machine.
finger @machine Displays a list of the users logged into the machine named machine.
who Displays a list of the users logged into the current machine.

Using the Command History

Command Effect
history Displays the command history.
!num Repeats the command with history number num.
!str Repeats the most recent command that begins with the string str.
!! Repeats the most recent command line.
!$ Repeats the word of most recent command line.

Logging In

To log onto a COM S machine, enter your IASTATE account name and password.

Logging Out

To log out of a machine, use logout or exit.