Score:0

The prompt on my Bash bug when I enter too long command line

io flag

I am using Bash and I installed Linux RasPi 5.15.0-1024-raspi #26-Ubuntu on my Raspberry Pi.

When I type a too long command on my bash the cursor goes at the beginning of the line and replace my username and hostname like this:

enter image description here

I am losing my focus and it seems to create other issues when the command line is too long.

What should I do? I presently use my raspberry pi to practice for a linux course. Should I just flash again my SD card with RasPi 5.15.0-1024-raspi #26-Ubuntu?

muru avatar
us flag
That is not the default prompt. If you edited, you need to follow the answer in the duplicate to escape non-printing characters like colour codes or bash will miscalculate the prompt length and show problems like this one.
Chookitypok avatar
io flag
I was not able to find a solution so I flashed the SD card of my Raspberry Pi, now it's fix, I had that issue for so long.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.