Solve the command line prompt bash: __bp_precmd_invoke_cmd: command not found bash: __bp_interactive_mode: command not found
First attach the original English text link to the original solution bash how to remove “__bp_precmd_invoke_cmd” error?
describe the problem
I reinstalled the server system today, and no matter what command I input on the command line, I will prompt
bash: __bp_precmd_invoke_cmd: command not found
bash: __bp_interactive_mode: command not found
. affect the visual experience.
Solution
Enter root privileges first
are
Go to the folder /root
cd /root
View the hidden file .bashrc of the folder
ls -a
Add unset PROMPT_COMMAND in .bashrc using nano or vim editor
nano .bashrc
Add unset PROMPT_COMMAND at the end of the line
Then ctrl+o to write, ctrl+x to exit
After returning to the terminal, enter the command to make the file just modified take effect
source .bashrc
Then problem solved! !