How to Change a Path in Linux

The Linux operating system stores files in directories on your computer. When you type a command in Linux or UNIX, the operating system reads the directories on your computer in the order they are specified in your system's "PATH" variable and searches for the command within these locations. This variable can be changed using a single command, allowing you to change the directory on your computer from which commands are read.

Instructions

    • 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."

Related Searches:

References

Comments

Related Ads

Featured