I am using Debian Linux. After logging in today, there was a message saying Firefox had an update. I clicked on it, but it errored out saying 'ldconfig' not found and that usually, /sbin, /usr/local/sbin, etc. are in ROOT's path. I su'd to ROOT, saw there was no 'PATH' variable so added a line to .bashrc as follows:
I realized I now have no ability to use commands as user ROOT, such as vi, apt-get, more, etc. I 'think' this would have been fine if I put:
Is that right?
but that's water under the bridge as I am dead in the water as user ROOT now. How can I get out of this problem of not being able to use vi as ROOT and get .bashrc back to the way it was?
It sounds like you've blown up your path. If it's not in your local .bashrc it means it's usually coming from /etc./skel/.bashrc or /etc/bash.bashrc
You should be able to open vim or nano by using explicit paths.
/bin/nano or /bin/vi I think should get you being able to edit the file. It could be /usr/bin/ instead of just /bin/, I'm not as familiar with Debian as I am with Arch and RHEL/SLES