Typo while exporting path and now having issues
I am having an issue from a typo I made when exporting a path. I was setting up the Google Go programming language on my Fedora 30 machine, but I mis-typed something while exporting my path.
I was supposed to type: Code:
export PATH=$PATH:/usr/local/go/bin Code:
export PATH=@PATH:/usr/local/go/bin Now when I try to run nearly any command in the terminal, I am presented with messages like: Code:
[erik@erik-pc bin]$ vi ~/bashbash: grep: command not found |
Just type the absolute path to vi?
Code:
/usr/bin/vi .bashrc |
Restore the .bashrc from backup?
|
Quote:
Code:
# .bashrc |
Quote:
|
I'm not sure what happened. After I restarted my terminal session the problem went away. I didn't do anything to before that.
|
Quote:
Code:
. .bashrc vi can be configured to always make a backup...making a copy of files before you edit them is a good practice. Glad all is better! |
Thanks Sean! I understand now. Since running the export command in an active session invokes those settings for that session only. I think configuring vi to automatically create a backup is a great idea. I'll look into doing that. Thanks for your help.
|
All times are GMT -5. The time now is 02:06 PM. |