Linux 15.012 Themen, 106.862 Beiträge

Linux

jkt3 / 3 Antworten / Flachansicht Nickles

Hi Leute,

ich flipp gleich noch aus...!
Wie kann ich unter ubuntu 5.10 die $PATH-Umgebungsvariable systemweit (für alle User) ändern. Meine Versuche das über /etc/profile oder über /etc/X11/Xsession.d zu machen bringen nix. Irgendwo muss ein File schlummern in dem $PATH gesetzt ist, das ich nicht finde.

bei Antwort benachrichtigen
KarstenW jkt3 „Meine Versuche das über /etc/profile oder über /etc/X11/Xsession.d zu machen...“
Optionen

Du kannst dann noch die Datei .bash_profile anpassen:


cat .bash_profile

# ~/.bash_profile: executed by bash(1) for login shells.
# see /usr/share/doc/bash/examples/startup-files for examples.
# the files are located in the bash-doc package.

# the default umask is set in /etc/login.defs
#umask 022

# include .bashrc if it exists
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi

# the rest of this file is commented out.

# set PATH so it includes user's private bin if it exists
if [ -d ~/bin ] ; then
PATH=~/bin:"${PATH}"
fi

# do the same with MANPATH
#if [ -d ~/man ]; then
# MANPATH=~/man${MANPATH:-:}
# export MANPATH
#fi
# ---- language-env DON'T MODIFY THIS LINE!
# .bash_profile is executed on login.
if [ -f ~/.bashrc ]
then
# execute .bashrc if it exists.
. ~/.bashrc
fi
# ---- language-env end DON'T MODIFY THIS LINE!

Debian GNU/Linux https://www.debian.org/index.de.html
bei Antwort benachrichtigen