From: Jerry Kreps
From/etc/profile: # /etc/profile
# PLEASE DON'T CHANGE /etc/profile. Chances are that your changes will # be lost during the next upgrade. # Use /etc/profile.local for your favourite global aliases, your VISUAL and # EDITOR variables, etc ...
From ~/.bashrc # Bash knows 3 diferent shells: normal shell, interactive shell, login shell. # ~/.bashrc is read for interactive shells and ~/.profile is read for login # shells. We just let ~/.profile also read ~/.bashrc and put everything in # ~/.bashrc.
<p><p>On Thursday 30 November 2000 01:03, Togan Muftuoglu wrote:
Ralf Corsepius wrote:
2) Where would I place commands specific to a user? ~someuser/.profile ?
~someuser/.bashrc
As this file's name says, ~/.bashrc is proprietary to bash.
A more portable solution is using ~/.profile.
On a singel-seat desktop or linux-only network the difference doesn't matter much, but it does matter significantly if being in a heterogenious network comprising systems where bash might not be available and if /bin/sh is used as login shell.
If other than bash are used yes if Bash is used then
From default .bashrc of SuSE
# Bash knows 3 diferent shells: normal shell, interactive shell, login shell. # ~/.bashrc is read for interactive shells and ~/.profile is read for login # shells. We just let ~/.profile also read ~/.bashrc and put everything in # ~/.bashrc.
So if the setup is for bash then this is the correct place to place user specific things as I understand it
-- Scientific theories, according to Sir Karl Popper, can be "falsified," or proven wrong, by experiment. Unscientific theories -Marxist dialectical history and Freudian psychology were Popper's favorites- are formed in such a way that they cannot be falsified by data.