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
+12.1k Golang : Parse date string and convert to dd-mm-yyyy format
+4.7k Golang : How to get username from email address
+4.6k How to let Facebook Login button redirect to a particular URL ?
+34.7k Golang : Disable security check for HTTPS(SSL) with bad or expired certificate
+3.6k Fontello : How to load and use fonts?
+4.9k Golang : How to capture return values from goroutines?
+13.6k Golang : Get command line arguments
+2.6k Javascript : How to show different content with noscript?
+6.4k Golang : Read file with ioutil
+7.5k Golang : Convert a rune to unicode style string \u
+1.8k Java : Random alphabets, alpha-numeric or numbers only string generator
+3.8k Golang : Experimenting with the Rejang script