For example, I want to add the bin under the or32-linux-4.5.1-1.Orc4 folder in the figure below to the PATH path
-
Use the cd command to enter the bin directory
-
Add path For
specific operations, see the
export command to add the PATH path in the following figure. The echo command exports the PATH. You can see that the bin under the or32-linux-4.5.1-1.Orc4 folder is added to the PATH.
Note thatpwd
the single quotes are not used here, but the following Symbols circled in the picture
-
Save the new path
source /etc/profile or source.bashrc to save and take effect