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
+14.9k Golang : Get URI segments by number and assign as variable example
+10.7k Golang : Flip coin example
+10.5k Swift : Convert (cast) String to Integer
+21.4k Golang : Create and resolve(read) symbolic links
+12k Golang : How to parse plain email text and process email header?
+5.1k Golang : Check if a word is countable or not
+27k Golang : Force your program to run with root permissions
+14.6k Golang : How to get URL port?
+8.1k Golang : Get all countries phone codes
+7k Golang : Levenshtein distance example
+21.3k Golang : How to get time zone and load different time zone?
+6k Linux/MacOSX : Search for files by filename and extension with find command