I was starting to type the command export PATH=/newPathAddition:$PATH
I think I must have copied in a newline when copying the newPathAddition
to paste into the command, because it ran export PATH=/newPathAddition
. I know I can manually add things to the path variable, but is there any way to restore it to what it used to be, or find out information about which directories were in the path beforehand? I really don't want to be in a situation in the future where all these commands aren't working on my computer because things vanished from the path that I don't remember.
问问题
578 次