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

Re: Which files do what: .bashrc and friends

Dotan Cohen wrote:
On a Debian-based system running KDE 3.5.10 I see several files that
are used when logging in / starting a Konsole:


Run once upon login.


List of previous commands for recall/edit/re execution


Run once upon logout


I believe equivalent to .profile


Run once for each interactive shell, after .profile

The main difference between .profile and .bashrc is that
.profile only gets run when you start a "login shell",
but .bashrc gets run for all shells.

So, for example, if you use

$ su -

you'll run root's .profile and .bashrc, but

$ su

only runs root's .bashrc

Oppose globalization and One World Governments like the UN.
This message made from 100% recycled bits.
You have found the bank of Larn.
I speak only for myself, and I am unanimous in that!

Reply to: