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.8k Golang : Convert seconds to human readable time format example
+16.2k CodeIgniter/PHP : Create directory if does not exist example
+17.5k Golang : Qt image viewer example
+19.6k Golang : How to get time from unix nano example
+48.2k Golang : Upload file from web browser to server
+6.1k Golang : How to search a list of records or data structures
+4.4k JavaScript : Rounding number to decimal formats to display currency
+23.7k Golang : Call function from another package
+5.4k Javascript : How to refresh page with JQuery ?
+4.2k Golang : Valued expressions and functions example
+18.7k Golang : Read input from console line