Message-ID: <3A25F8AD.D722FF49@faw.uni-ulm.de>
Date: Thu, 30 Nov 2000 07:50:21 +0100
From: Ralf Corsepius
Ahbaid Gaffoor wrote:
If I setup a user with bash as their default shell:
1) Where would I place commands I need run for every user upon login? /etc/profile ?
/etc/profile.local
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.
Does it vary based on the shell? probably It does (cf. above).
You also might want to read man bash (section INVOCATION). Regards, Ralf