Re: what bash dotfiles are read during interactive ssh?
On Mon, Apr 19, 2004 at 07:27:06AM +0800, Dan Jacobson wrote:
> What file can one put "unalias ls", or anything in fact, in for it to
> get read on the remote system upon interactive ssh? .bashrc,
> .bash_profile are apparently not read.
On mine it executes .bash_profile (normal login shell).
According to ssh man page you should get a normal login if you don't
specify a command to execute.
Is your login shell bash? Is there some system setup to cause bash to
look in a different login file? (e.g. .profile?)
If bash is invoked as 'sh' I understand that it looks instead in
.profile
HTH
>
> At most I can do now is
> $ ssh porky.simonds.net
> porky$ unalias ls
>
> I don't want the dotfile read on batch jobs preferably.
>
--
Chris Harris <charris@rtcmarketing.com>
-------------------------------------------
GNU/Linux --- The best things in life are free.
Reply to: