+2 votes
in Operating Systems by (63.4k 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 (271k 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


Related questions

+3 votes
1 answer
+1 vote
1 answer
+2 votes
1 answer