[ glamoc @ 11.11.2010. 09:57 ] @
Nikako ne uspevam da PATH promenljivoj dodam neku putanju za stalno.
Na ovom forumu sam nasao da to treba da stavim u /etc/profile , i ja sam to uradio ali se to ne odrazava na vrednost PATH-a.

Fajl /etc/profile izgleda ovako:

Code:
# /etc/profile: system-wide .profile file for the Bourne shell (sh(1))
# and Bourne compatible shells (bash(1), ksh(1), ash(1), ...).

if [ -d /etc/profile.d ]; then
  for i in /etc/profile.d/*.sh; do
    if [ -r $i ]; then
      . $i
    fi
  done
  unset i
fi

if [ "$PS1" ]; then
  if [ "$BASH" ]; then
    PS1='\u@\h:\w\$ '
    if [ -f /etc/bash.bashrc ]; then
    . /etc/bash.bashrc
    fi
  else
    if [ "`id -u`" -eq 0 ]; then
      PS1='# '
    else
      PS1='$ '
    fi
  fi
fi

umask 022

export PATH=$PATH:/opt/lampp/bin


Sta je problem

[Ovu poruku je menjao glamoc dana 11.11.2010. u 11:20 GMT+1]
[ combuster @ 11.11.2010. 11:23 ] @
Jesi li probao da to postavis u /etc/bash.bashrc ?
[ Srđan Pavlović @ 11.11.2010. 11:44 ] @
Jedan korisnik:

$HOME/.bash_profile

Svi korisnici, sem root-a:

/etc/profile

root korisnik:

/root/.bash_profile



Pokusaj ovako:

Code:

PATH=$PATH:/neka_putanja
export PATH


I to postavi u jedan od ona tri fajla, po potrebi.
[ nemysis @ 11.11.2010. 16:22 ] @
Koristim kod svakog korisnika u ~/.bashrc

Code:

# Yours personaly Path                                                                                                              
#export PATH=/home/bin:$PATH                                                                                                        
[ -d /home/bin ] && export PATH=/home/bin:"$PATH"                                                                                   
[ -d /home/bins ] && export PATH=/home/bins:"$PATH"
[ Miroslav Strugarevic @ 11.11.2010. 19:38 ] @
Mozda logout/login?
[ Au197/79 @ 12.11.2010. 19:58 ] @
treba da uradiš

Code:
source ~/.profile


kad promeniš file da ne bi morao da radiš logout/login