Using CEE Unix Machines


      Getting Started
      Programmming
      Logging Out from Unix Workstations


      Getting Started

      1. Log on to the Unix Workstation using your CEE login name and password

      2. A screen will appear, with 2 xterms, which are Unix windows. Both of these windows are active and you can type in either.

      Back to Top of Page


      Programming

      1. In one of the Unix xterms, start an editor, for example nedit

      2. The editor window will appear on the screen.

      3. You can now type in the program in the editor window

      4. Save the program ensuring that the filename ends ".cpp" (or .C or .cxx). Using nedit, the Save option can be selected from the File pull-down menu.

      5. Return to the Unix window and compile the program. In this example, I saved the program as the file hello.cpp, so to compile it

        g++ -o hello hello.cpp

      6. This will have produced an executable called hello which can be run by typing

        hello

      7. You can now type in another program and repeat the above steps

        Back to Top of Page


        Logging Out

      8. Once you have completed your session, you should exit from the editor. To log out from the Unix environment, move the cursor out of any window into the background area, press the left mouse button, a menu will appear and from this select the option to logout. If you have logged out correctly, a new login box should appear on the screen ready for the next user.

        Back to Top of Page


        Home