+2 votes
in Operating Systems by (71.8k points)
I installed goreman on my Ubuntu machine, but I am not able to run it. The documentation says I need to update the PATH variable to add bin folder of go. How can I update the PATH variable?

1 Answer

+2 votes
by (348k points)
selected by
 
Best answer

'goreman' should be present in the directory: /home/userid/go/bin. If not, find the location where goreman is present. Then do the followings steps:

1. Open the terminal and type cd ~ to go your home folder. 

2. Open .profile file in edit mode using your favorite editor. e.g. $ nano .profile

3. Go to the end of .profile file and add the following lines:

# set PATH for goreman

export PATH=$PATH:$HOME/go/bin

4. Save the change and exit from the file.

5. Run one of the following commands to update the PATH variable.

$ . .profile or

$ source .profile

These commands will make changes in the PATH variable. However, I would recommend to log out instead of running these commands.

6. Check the updated PATH variable using the following command

$ echo $PATH

/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/lib/jvm/java-8-oracle/bin:/usr/lib/jvm/java-8-oracle/db/bin:/usr/lib/jvm/java-8-oracle/jre/bin:/home/userid/go/bin

Related questions


...