set path=(/bin /usr/bin /usr/ucb /opt/GCC2721/bin /usr/local/bin /usr/ccs/bin /usr/sbin /usr/local/samba/bin /opt/sybase/bin . ) setenv LD_LIBRARY_PATH "/opt/sybase/lib/:/usr/local/lib:." setenv LD_LIBRARY_PATH "${LD_LIBRARY_PATH}:/opt/sybase/lib/:/usr/local/lib:." > FIRST: When I install a program in /usr/local and Idon't have the > correct directories inthe PATH and MANPATH where can I change this for > default for all USERS. I know that each user can change this in his > .profile, .login or .cshrc,but I want some VARS are set in advance... >> edit your /etc/profile >> PATH=$PATH:: > MANPATH=$MANPATH:: >> export PATH MANPATH We use a wrapper for /usr/bin/man. If MANPATH is not set (the default), it will be initialised to `echo $PATH | sed s/bin/man/g` before invoking /usr/bin/man.This works very well. ===================================== If your system default shell is sh or ksh, 1. Put PATH=/usr/bin:/usr/local/bin:...... and MANPATH=/usr/share/man:...... in your /etc/profile. 2. Put PATH=$PATH in /etc/skel/.profile (create this file). Ask all existing sh and ksh users to change their PATH in .profile to PATH=$PATH. If your system default shell is csh, 1. Put set path=(/usr/bin /usr/local/bin ...... ) and setenv MANPATH "/usr/share/man:/usr/local/man:......" in your /etc/.login. 2. Put PATH=$PATH in /etc/skel/.login (create this file). Ask all existing csh users to change their path in .login to set path=$path. bash documents this in its PROMPTING section. For this particular prompt you would set: PS1='\u@\H, \w % ' In ksh you could set something like: PS1="${LOGNAME:-$USER}@$(hostname)"', $PWD % '(This also works with bash.) setenv host `hostname` alias cd 'cd \!*; set prompt="$USER@$host `echo $cwd` % "' See the tcsh man-page, thesection on Special shell variables, the item 'prompt'. Example: set prompt="$HOST\:%~% " in your .tcshrc will automatically adjust the prompt to echo current host and directory. No alias needed.