****Setting PATH: Here is one example of path selection that everyone should be using: PATH=.:/usr/bin:/usr/sbin:/p/gcc-2.8.1:/p/gnu:/p/perl:/p/gdb-4.17/bin:/usr/local/bin:/usr/ccs/bin:/usr/ucb/:/usr/openwin/bin:/usr/openwin/ To make this your own path, find out what shell you are running. Do this by going into a terminal (console) window and typing ps. One of tcsh, csh, sh, ksh, or bash should appear. This will tell you which initiation file to modify, if you are running tcsh, then your initiation file is .tcshrc (just add a period at the start, and rc at the end). In this file, there should (but may not be) a line like the one below: set path=( . /usr/bin\ /usr/sbin /p/gcc-2.8.1 /p/gnu /p/perl \ /p/gdb-4.17/bin /usr/local/bin\ /usr/ccs/bin /usr/ucb/ /usr/openwin/bin /usr/openwin/\ ) Make sure you add the current directory, . into your path as the above. Add this path selection, and make sure the order is correct. The next time you login, if you type env, you should see your path, and it should be the one above. If you have trouble doing this, please come see me during office hours, or email me for another appointment. ****Setting MANPATH: setenv MANPATH /usr/local/man:$MANPATH or you can edit your shell script file ( if your shell is csh, your shell script file is .cshrc ) with the above command. ****Here is my .tcshrc file as an example. #This is a start up script for the tcsh (t-shell) program. #It sets your path, prompt and other useful aliases #Man pages: The online manuals are here setenv MANPATH /usr/man:/usr/local/man #News: This is useful for news readers setenv NNTPSERVER "usenet.ins.cwru.edu" setenv NAME $USER setenv ORGANIZATION "Computer Engineering and Science, CWRU, Cleveland OH." setenv DOMAINNAME "ces.cwru.edu" #Open Windows: This is where all the open windows stuff is kept setenv OPENWINHOME /usr/openwin setenv MANPATH $OPENWINHOME/man:$MANPATH #Netscape: Netscape needs to know where this directory is setenv XNLSPATH /usr/lib/X11/nls #This tells the shell to keep track of previous commands set history=300 savehist=100 set LD_LIBRARY_PATH=(/usr/lib: \ /usr/openwin/lib/X11:/usr/ucblib: \ /usr/openwin/lib:/appl/SUNWmotif/lib \ /usr/local/X11/lib: \ ) #This sets the paths which the shell will search for commands set path=( . /usr/bin\ /usr/sbin /p/gcc-2.8.1 /p/gnu /p/perl \ /p/gdb-4.17/bin /usr/local/bin\ /usr/ccs/bin /usr/ucb/ /usr/openwin/bin /usr/openwin/ \ /p /p/www /p/jdk-1.1.6 /p/jdk-1.1.6/bin /p/ssh \ $LD_LIBRARY_PATH \ /usr/bin/X11 \ ) # Aliases: The following aliases do useful stuff alias setprompt 'set prompt="`hostname`:$PWD> "' # To set your prompt setprompt alias cd 'chdir \!* && setprompt' #alias cd 'cd \!* ; echo ]2\;$cwd' alias rm rm -i # You don't want to accidently erase files alias mv 'mv -i' # Don't accidently overwrite files limit coredumpsize 0k # prevent the creation of core files # Optional aliases: You decide whether you want to keep any of these aliases alias cls clear # To clear your screen, ^L will also work alias dir 'pwd;ls -l' # If you like the DOS command alias library 'telnet catalog' # Contact the CWRU library catalog alias rn 'rn -m=s -M -q' # Set some default read news options alias vt100 setenv TERM vt100 alias new 'frm | tail' # Use new to check if you have new mail alias phonenumber 'whois -h whois' # Use phonenumber to search the # campus directory alias psv 'ps -aux|grep -v root|sort' # To check the process running on your # machine alias m more alias h head alias k9 'kill -9' # To kill processes alias l 'ls -l' alias qt 'quota -v ' # Check your disk quota -------------------------------------------------------------------------------- Changing shells: Ex) changing to tcsh passwd -e nis -r /bin/tcsh There are 5 basic supported shells in our UNIX system, and which one you choose should not greatly affect the assignments in any way. I personally use tcsh (T-Shell), and I believe the default is csh (C-Shell), which is very useful. If you have used UNIx before, or if you have read about UNIX and would prefer another shell, such as Bash, enter passwd -r nis -e, and you will have to enter your password, and then a shell directory, each one of which is listed below: /bin/sh /bin/csh (C-Shell... default) /bin/tcsh (T-Shell) /bin/ksh (Korn shell... ) /bin/bash (Bash Shell)