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 ?
Asked
Active
Viewed 941 times
0
Kyaw Kyaw Soe
- 203
- 2
- 4
Mazen Saad
- 31
- 2
-
1Does this answer your question? [How to restore .bashrc file?](https://askubuntu.com/questions/198730/how-to-restore-bashrc-file) – muru Jan 17 '21 at 06:37
1 Answers
1
Try this command:
sudo cp /etc/skel/.bashrc /root/.bashrc
Please backup your current .bashrc in case this does not work :)
roey
- 11
- 2
-
1You should keep a copy of the "corrupted" one, so you can try to find your mistake: `cp /root/.bashrc{,.corrupted}` – glenn jackman Jan 16 '21 at 20:31