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
+18.1k Golang : Read input from console line
+8.8k Golang : Validate IPv6 example
+9.9k Golang : How to transmit update file to client by HTTP request example
+13.5k Golang : On enumeration
+15k Golang : Update database with GORM example
+7.6k Golang : Ackermann function example
+14.3k Golang : Get timezone offset from date or timestamp
+5.6k Unix/Linux : Use netstat to find out IP addresses served by your website server
+8.5k Mac OSX : Get a process/daemon status information
+13.8k Golang : Adding XML attributes to xml data or use attribute to differentiate a common tag name
+5.9k Golang : Check if password length meet the requirement
+7k Golang : Ways to recover memory during run time.