Your prompt ($PS1) is no doubt set to include a LF (line-feed) character. Change it to whatever you want it to be. https://help.ubuntu.com/community/CustomizingBashPrompt
– guivercNov 07 '21 at 10:57
Does this answer your question? [Changing colors for user, host, directory information in terminal command prompt](https://askubuntu.com/questions/123268/changing-colors-for-user-host-directory-information-in-terminal-command-prompt)
– karelNov 08 '21 at 06:27