Lab 0 UNIX Tutorial:

 

Create two directories in your user directory (default when you open a shell)

            mkdir tempdir

            mkdir assignmentdir

 

Change directory tempdir

            cd tempdir

 

Create a file using Xemacs

            Xemacs myprogram.c

 

Add some text to the file.

 

Save and close the file.

 

Copy the file to the assignment directory.

            cp myprogram.c ../assignmentdir

 

Change to the assignment directory.

            Cd ../assignmentdir

 

Display the file to the screen.

            more myprogram.c