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
  • 68,917
  • 7
  • 78
  • 118

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
  • 8,338
  • 10
  • 40
  • 72