Add PATH path under Linux system

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
Insert picture description here

  1. Use the cd command to enter the bin directory
    Insert picture description here

  2. Add path For
    specific operations, see the
    Insert picture description here
    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 that pwdthe single quotes are not used here, but the following Symbols circled in the picture
    Insert picture description here

  3. Save the new path
    source /etc/profile or source.bashrc to save and take effect

Guess you like

Origin blog.csdn.net/weixin_45849079/article/details/109237447