Thursday, July 10, 2008

bashrc vs bash_profile

bash_profile is callled when a non-interactive log-in shell
is invoked (e.g., starting terminal in Gnome or emacs shell)

bashrc is called when an interactive log-in shell is invoked
(e.g., ssh shells)

Add the following to .bash_profile and write all things that
you need to do in .bashrc so that even when a non-interactive
log-in shell is invoked, still .bashrc will get invoked.

if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi

No comments:

Post a Comment

Continuously monitor GPU usage

 For nvidia GPUs do the follwing: nvidia-smi -l 1