#!/bin/bash # Install Go on Ubuntu and Debian-based Linux distributions! : ' Perform the following: 1. chmod +x go.sh; 2. ./go.sh; OR 1. bash go.sh; ' wget https://golang.org/dl/go1.15.5.linux-amd64.tar.gz; tar -xvf go1*; mv go /usr/local; rm go1*.gz; echo -e "export GOPATH=\$HOME/go\nexport GOROOT=/usr/local/go\nexport PATH=/usr/local/sbin/:\$GOPATH/bin:\$GOROOT/bin:\$PATH\n" >> ~/.*shrc source ~/.*shrc;