To display your PATH variable, at a command-line, type:
To edit your PATH variable, open a text editor, then open the .bash_profile file in your home directory. You should see a line like:
Change that line to include what you want. If, for instance, you wanted to include /usr/local/test/bin to the path, change the above line to:
Save the file, log out, and log back in.