Re: https://wiki.debian.org/DotFiles
On Sun 20 Apr 2025 at 23:55:22 (+1000), George at Clug wrote:
> On Sunday, 20-04-2025 at 01:12 peter@easthope.ca wrote:
> > Debian 12 here, obtained by upgrading Debian 11.
> >
> > In https://wiki.debian.org/DotFiles the sixth paragraph states, "You
> > should therefore always have command source ~/.bashrc at the end of
> > your .bash_profile in order to force it to be read by a login shell."
> >
> > # ls ~/.bash_profile
> > ls: cannot access '/home/root/.bash_profile': No such file or directory
>
> Please excuse my ignorance, but how did you manage to get the folder "/home/root/" when running "ls ~/.bash_profile" as root?
>
> To my knowledge root's home directory should be /root, not /home/root.
>
> For me:
> # ls ~/.bash_profile
> /root/.bash_profile
>
> Did you create a user by the name "root" ?
To save a rehash, see the thread:
https://lists.debian.org/debian-user/2022/02/msg00035.html
Cheers,
David.
Reply to: