[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Pb de PATH...
On Sun, 21 Apr 2024 19:23:24 +0200
"Jean-Marc MONGRELET" (via linux-31 Mailing List) <linux-31@culte.org> wrote:
> Le 21/04/2024 19:00, Jean-Marc MONGRELET a écrit :
> >
> > J'ai créé un fichier ~/.bashrc avec ça dedans:
> > $ cat .bashrc
> > export PATH="$PATH:/home/astronaut/bin"
> >
> > mais cela n'a pas l'air de fonctionner!
> Si, cela fonctionne, mais pas pour une session ssh... Je ne comprends
> pas pourquoi ???
Dans ~/.profile:
PATH="$HOME/bin:$PATH"
(J'ai mis mon "bin" sous le répertoire ~/.local, ce qui donne :
PATH="$HOME/.local/bin:$PATH" )
et plus précisément, j'ai ce bloc de texte à la fin de mon fichier .profile:
# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/.local/bin" ] ; then
PATH="$HOME/.local/bin:$PATH"
fi
Quand à une connexion ssh, ce texte commenté existe dans mon fichier:
# the default umask is set in /etc/profile; for setting the umask
# for ssh logins, install and configure the libpam-umask package.
#umask 022
--
Orditux Informatique
https://orditux.org
https://orditux.org/aol/
https://orditux.org/floss