how to export path linux permanently

how to export path linux permanently

 

They are configuration files. One way:

    Open a terminal window using Ctrl+Alt+T
    Run the command gedit ~/.profile

    Add the line

    export PATH=$PATH: /usr/local/go/bin

    to the bottom and save

    Log out and log in again

 

اشتراک گذاری