In a brand new system, I mistakenly deleted /etc/bash.bashrc
, by creating and redirecting to it, instead just appending.
How could I restore it without reinstalling the system?
As the experts here know, this is an important file in the system and I need it for proper working of the system as well as aliases.
I tried rebooting assuming it will be recreated but it isn't. In a quick Google search I found nothing (I found many results regarding restoring ~/.bashrc
but of course it's different).
How could I restore it fast without copying from another PC?
A same-PC minimal, fast, solution.
set -o noclobber
to prevent mistakes like these