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 1,163 times
0

Kyaw Kyaw Soe
- 203

Mazen Saad
- 31
-
1Does this answer your question? 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
-
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