I’ve accidentally overwrote my PATH, MANPATH and INFOPATH variables with
export PATH=...
and forgot to append :$PATH
in the end.
Did the same for MANPATH and INFOPATH.
Is there a way to revert to previous states or “load” default values?
I’ve accidentally overwrote my PATH, MANPATH and INFOPATH variables with
export PATH=...
and forgot to append :$PATH
in the end.
Did the same for MANPATH and INFOPATH.
Is there a way to revert to previous states or “load” default values?
well:
HOW (exactly) did you do this?
What file did you alter - if any?
If you know what you altered - simply correct it.
If you don’t know …
but you should know what you did - and perhaps why …
statements like that are not permanent - if you do not put them in a file that is read by the shell or otherwise executed on login
HOW (exactly) did you do this?
As mentioned above, I ran export PATH=/path/i/wanted/to/add
for the PATH, INFOPATH and MANPATH variables.
They got replaced instead of extended with /path/i/wanted/to/add
, since I forgot to append the original paths (:$PATH
, :$MANPATH
, :$INFOPATH
).
What file did you alter - if any?
Afaik, I did not alter any files.
in that case:
nothing happened
log out, log in and be done with it
you can check with:
printenv
for example
Should also be reset by restarting your terminal application.
It seemed worse than it actually was
Thanks y’all o/
@mike_juliett We don’t edit topic titles to mark them solved like on other forums. We use Discourse which allows one to mark a post as the solution which you’ve already done.
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.