Problem: Writing source /etc/bash.bashrc to bash.bashrc
As a result, VIM and sudo statements cannot be used to modify files.
A method I discovered by accident:
- Enter the system disk and find the root folder
- Double-click to open, requiring a password. This is equivalent to entering root mode.
- Then use vim to open bash.bashrc in etc/
- Just delete the last source /etc/bash.bashrc and it will be OK.
I wrote it myself so it's a bit complicated, but at least it's done hehe. If you have any optimizations, please discuss in the comment area! !