How to Change a Path in Linux
- 1). Log on to your Linux computer using your preferred username and password.
- 2). Open a new terminal window. If your system is configured to use a Window Manager, this is typically stored within the "Applications" or "Utilities" section of the panel.
- 3). Type "export PATH=<path>" and then press "Enter." Replace "<path>" with the directory you'd like to add to the system path. For example, "export PATH=/usr/local/bin."
Source...