Q:

How to Permanently update PATH variable in Unix

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.

A:

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.

