Supercomputing Institute Scientific Development & Visualization Lab

Default Startup Files for the SDVL UNIX Workstations

The default startup files are simple - they are designed for general users - and consist of three files. .cshrc, .tcshrc, and .login.

The .login file detects and sets the terminal type.

If you are running the tcshell (Highly recommended),the .tcshrc file sets parameters specific to the tcshell such as the prompt, and then sources the .cshrc file (If a .tcshrc exists, .cshrc is not executed, unless it is sourced explicitly.).

The .cshrc initializes the Modules package and sets aliases. You may add your own aliases to the specified place in this file. Do not remove the lines that initialize the modules package. For more information on Modules, see http://www.msi.umn.edu/info/modules

You may want to create a file called .Xdefaults, which is used to set paramaters for applications that use XWindows. For more info, see http://www.msi.umn.edu/sdvl/info/introX/xdefaults.html


Default .cshrc Startup File for the SDVL UNIX Workstations

# .cshrc

# initialize and load modules

unsetenv PATH MANPATH
if( -e /usr/local/share/modules/init/tcsh ) then
source /usr/local/share/modules/init/tcsh
endif

module load base

umask 077 # -- private, only you have access to your files
# umask 022 # -- anyone can read and execute your files
# umask 027 # -- only members of your group can read/execute your files

if ($?prompt) then # interactive session

# set prompt = "`hostname` % " # uncomment if you use csh

# add your aliases here
alias rm rm -i
alias mv mv -i
alias cp cp -i
# alias ls ls -CF # uncomment if you use csh
alias t telnet
alias r rsh
alias s ssh

else # not an interactive login

unset noclobber

endif


Default .tcshrc Startup File for SDVL UNIX Systems



# .tcshrc

# tcsh-specific entries should go here

if ( $?prompt ) then # interactive shell

# prompt setup
set prompt = "%n@%m %B[%~]%b %% "

# keybinding (tcsh defaults to emacs-style keybindings. Uncomment
# the following for vi-style keybindings.)

# bindkey -v

# tcsh-specific aliases
alias ls ls-F # use faster tcsh-ls

endif

if ( -f ~/.cshrc ) then
source ~/.cshrc
endif



Default .login Startup File for SDVL UNIX Systems


# .login

# Initialize terminal.

if (! $?ENVONLY ) then

echo -n "Detecting terminal type... "
eval `/usr/local/etc/set-term $SHELL`
echo $TERM
echo ""

endif



This information is available in alternative formats upon request by individuals with disabilities. Please send email to alt-format@msi.umn.edu or call 612-624-0528.

HOME | QUESTIONS | FEEDBACK
Events | Links | People | Publications | Support | Welcome
 


URL: http://www.msi.umn.edu /sdvl/info/default_startup.html
This page last modified on Wednesday, 23-Apr-2008 11:06:54 CDT  
Please direct questions or problems to help@msi.umn.edu  
Website related questions or problems should be directed to webmaster@msi.umn.edu
The Supercomputing Institute does not collect personal information on visitors to our website. For the University of Minnesota policy, see www.privacy.umn.edu.