解决bash: __bp_precmd_invoke_cmd: command not found bash: __bp_interactive_mode: command not found

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

insert image description here
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

insert image description here

View the hidden file .bashrc of the folder

ls -a

insert image description here
Add unset PROMPT_COMMAND in .bashrc using nano or vim editor

nano .bashrc

insert image description here
Add unset PROMPT_COMMAND at the end of the line
insert image description here

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

insert image description here
Then problem solved! !

Guess you like

Origin blog.csdn.net/lzsm_/article/details/126083649