1.sudo vi /etc/profile
2. Press i, enter the edit mode
3. went to the end of the file, press Enter
4. Enter PATH = <your path>: $ (variable <your path> you want to add replace) the PATH
5. Press esc, the: wq
6.source /etc/profile
7. Enter the $ PATH, to see whether to add on