This is not a programming question.
I have a machine running Ubuntu, and I installed Golang on it. It was working fine... I even ran a few programs, but the "go1.11.2.linux-amd64.tar.gz" file was in my home directory so I thought it would be okay to move it to the Downloads directory. After moving it, I can't use any Go command, and I get command 'go' not found. I tried moving the file back to the home directory, but I'm still getting the same error.
Can anybody explain to me what's going on? Thanks!!
richie@richie-ThinkPad-T430:~$ go version Command 'go' not found, but can be installed with: sudo snap install go # version 1.11.2, or sudo apt install golang-go sudo apt install gccgo-go See 'snap info go' for additional versions.
The commands I used to install Go :
wget https://dl.google.com/go/go1.11.2.linux-amd64.tar.gz sudo tar -C /usr/local -xzf go1.11.2.linux-amd64.tar.gz export PATH=$PATH:/usr/local/go/bin source ~/.profile