Unix/Linux/MacOSx : How to remove an environment variable ?
Somehow I screwed up my GOPATH and GOROOT environment variables today and removing (sudo yum remove ) Go did not help. A quick check revealed the old environment variables are still around.
Problem :
How to remove the unwanted environment variables ?
Solution :
Use unset
command. unset <environment variable>
For example :
unset GOROOT
By Adam Ng
IF you gain some knowledge or the information here solved your programming problem. Please consider donating to the less fortunate or some charities that you like. Apart from donation, planting trees, volunteering or reducing your carbon footprint will be great too.
Advertisement
Tutorials
+6.1k Golang : Experimenting with the Rejang script
+3.8k Golang : Switch Redis database redis.NewClient
+7.9k Golang : Lock executable to a specific machine with unique hash of the machine
+7.1k Golang : Validate credit card example
+17.8k How to enable MariaDB/MySQL logs ?
+17.7k Convert JSON to CSV in Golang
+25.1k Golang : Create PDF file from HTML file
+6.8k Golang : Experimental emojis or emoticons icons programming language
+6.4k CodeIgniter : form input set_value cause " to become & quot
+88k Golang : How to convert character to ASCII and back