0

I am trying to update path variable in UNIX

PATH=$PATH:/usr/local/bin

PATH variable includes the path, but next time I reboot the system it got flushed how can I update PATH variable permanently. So that I need not to update it every time I reboot the system.

Etan Reisner
  • 73,512
  • 8
  • 94
  • 138

1 Answers1

0

If this is for all users, place this in /etc/profile or /etc/bashrc If just for a given user, place it in his/her ~/.bashrc.

I hope this helps.

Eldad Assis
  • 9,519
  • 11
  • 45
  • 75