CS 214: Programming Languages
Spring 2009

Home|Syllabus|Schedule
<<|>>

Setup Your Account
Setup, Iteration 1

Add to Your PATH

Linux machines use an environment variable named PATH to find executable files for you to run on the command line. I've put several interpreters and compilers in a special locations for us: /home/cs/214/bin.

Add this path to your PATH variable in your .bashrc file.

If you don't know how to do this, here's how it breaks down:

  1. Start up a simple text editor (vi, emacs, gedit).
  2. Open the file ~/.bashrc in your editor. (The ~/ indicates that it's in your home directory.)
  3. Add this line to the end of the file:
    export PATH=/home/cs/214/local/bin:$PATH
    
  4. Make sure there's a blank line after this!
  5. Save the file.
  6. Open a new terminal window.

You can verify that you've done things correctly by trying to run these commands: