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
+19.1k Nginx + FastCGI + Go Setup.
+11.3k Golang : Validate email address
+16.6k Golang : Simple client server example
+10.6k CodeIgniter : Import Linkedin data
+4.3k Golang : Qt update UI elements with core.QCoreApplication_ProcessEvents
+35.3k Golang : Convert(cast) int64 to string
+5.4k Golang : Test input string for unicode example
+5.3k Golang : Experimental emojis or emoticons icons programming language
+9.4k Golang : Generate 403 Forbidden to protect a page or prevent indexing by search engine
+5.8k Golang : Check if password length meet the requirement
+10.3k Golang : Post data with url.Values{}
+17k Golang : Display list of time zones with GMT