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
+20.2k Nginx + FastCGI + Go Setup.
+16k Golang : How to extract links from web page ?
+16.1k Golang : Convert slice to array
+6.6k How to let Facebook Login button redirect to a particular URL ?
+25k Golang : convert rune to integer value
+10.7k Golang : Create Temporary File
+9.4k Golang : Eroding and dilating image with OpenCV example
+21.8k Golang : How to run Golang application such as web server in the background or as daemon?
+5.1k Golang : Return multiple values from function
+10.3k Golang : Select region of interest with mouse click and crop from image
+9.2k Mac OSX : Get a process/daemon status information
+8.6k Yum Error: no such table: packages