Unix Tutorial

Unix is available for use in the Sun workstations in 1307 as well as on the compute or login servers .

 

When using X11 forwarding or the workstations locally, Unix provides a graphical interface for the user. However, basic knowledge of Unix is needed for some operations which are not available in a graphical program, or for when connecting remotely to a machine using ssh .

 

Basic Commands

Action Unix Command
Read the manual for a command man command
List files in a directory ls -al
Copy a file cp sourcefile desinationfile
Display all of a file cat filename
Scroll through a file more filename
Move/rename a file mv oldname newname
Delete a file rm filename
Combine files cat file1 file2 > outfile
Compare files diff -u file1 file2
Show current directory pwd
Make a directory mkdir dirname
Change to a directory cd dirname
Change to parent directory cd ..

 

Some additional commands and information are listed below.

 

Printing

lp or lpr -Pprintername filename

 

Available GUI's

See the software pages for CDE or Gnome/

Programing

See the software page for SunStudio