debian, bash und ~/.bashrc und ~/.profile
Florian Lohoff
flo at rfc822.org
Mon Feb 25 17:48:03 CET 2002
On Mon, Feb 25, 2002 at 03:27:01PM +0100, Johannes Goecke wrote:
> Hi Liste !
>
> ich habe ein Problem mit folgender Config
>
> Debian "testing"
> openssh
> bash
>
> wenn ich mich per SSH auf dem Rechner einlogge werden weder
> ~/.bashrc noch ~/.profile ausgeführt ( um aliasse zu setzten etc..)
Vermutlich weil eine ".bash_profile" existiert... Bei login shells
wird laut manpage:
When bash is invoked as an interactive login shell, or as
a non-interactive shell with the --login option, it first
reads and executes commands from the file /etc/profile, if
that file exists. After reading that file, it looks for
~/.bash_profile, ~/.bash_login, and ~/.profile, in that
order, and reads and executes commands from the first one
that exists and is readable. The --noprofile option may
be used when the shell is started to inhibit this behav
ior.
When a login shell exits, bash reads and executes commands
from the file ~/.bash_logout, if it exists.
When an interactive shell that is not a login shell is
started, bash reads and executes commands from ~/.bashrc,
if that file exists. This may be inhibited by using the
--norc option. The --rcfile file option will force bash
to read and execute commands from file instead of
~/.bashrc.
In /etc/skel/.bash_profile wird erwaehnt die .bashrc zu "sourcen":
# include .bashrc if it exists
#if [ -f ~/.bashrc ]; then
# source ~/.bashrc
#fi
Was ich standardmaessig enable und alles interessante in the .bashrc
packe.
Flo
PS: Ein ganz klarer fall von RTFM
--
Florian Lohoff flo at rfc822.org +49-5201-669912
Nine nineth on september the 9th Welcome to the new billenium
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: not available
URL: <http://lug-owl.de/pipermail/linux/attachments/20020225/1b8be64a/attachment.sig>
More information about the Linux
mailing list