[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Sheflug] .profile difference




> Hi,
> 
> Can someone please tell me what the difference between .profile in the /etc directory and .bash_profile in the home directory is?
> 

Lesson one ... don't send HTML mail to the list :) Switch it off in Outlook, 
please.

As for the profiles;

	/etc/profile	- Global settings used by bash/ksh/sh. Executed by
		login shell.
	$HOME/.profile	- Local settings for each user. Used by bash/ksh/sh.
		Executed after /etc/profile
	$HOME/.bash_profile - Similar to $HOME/.profile but is used by bash only.

Why Bash has to have yet another setup file on top of .profile I don't know. 
ksh/sh seem to co-exist quite happily with just .profile ... but anyhow, I 
digress.

I think there's an /etc/bash_profile as well ... but I'm not a bash user (I 
always use ksh at command line and either ksh or sh for scripts as it's more 
portable across UNIXes), so someone else might want to confirm ?

The man page for bash(1) should have more details.

Chris...

-- 
\ Chris Johnson           \ NP: Atomic 80s - 15. The Cult - She Sells Sanctu
 \ cej [at] nightwolf.org.uk    ~-----,  ary 
  \ http://cej.nightwolf.org.uk/  ~-----------------------------------, 
   \ Redclaw chat - http://redclaw.org.uk - telnet redclaw.org.uk 2000 \____


___________________________________________________________________

Sheffield Linux User's Group -
http://www.sheflug.co.uk/mailfaq.html

  GNU the choice of a complete generation.