I’m experimenting with Linux shared libraries and added an entry (export LD_LIBRARY_PATH=/path/to/library:${LD_LIBRARY_PATH}) to $LD_LIBRARY_PATH. Now I wish it gone. How can I do that?
PS. Typing echo $LD_LIBRARY_PATH before I added an entry gave me an empty line. Now it says:
path/to/library:
If previously it gave you empty line it (most probably) means that the variable was not set (by default it is not set), so you can just unset it:
A few other options to experiment:
Removing path from the end:
Similarily, removing path from the beginning (if set as above):