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
  • 77,877
  • 8
  • 106
  • 148

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
  • 10,464
  • 11
  • 52
  • 78