I was editing my .bashrc file for the /root user and I think I deleted important lines or smth. It became root@pop-os:~# with a grey color like the regular font in the terminal. How to reset the .bashrc file ?


Try this command:

sudo cp /etc/skel/.bashrc /root/.bashrc

Please backup your current .bashrc in case this does not work :)

  • 1
    You should keep a copy of the "corrupted" one, so you can try to find your mistake: cp /root/.bashrc{,.corrupted} – glenn jackman Jan 16 at 20:31

Not the answer you're looking for? Browse other questions tagged or ask your own question.