Stack Exchange
Ask Ubuntu Stack Exchange
Questions
Tags
Users
About
Ask Ubuntu Stack Exchange
Public
Questions
Tags
Users
About
why does ($) appear in the second line
Asked
Nov 07 '21 at 10:00
Active
Nov 07 '21 at 10:06
Viewed
67 times
0
I don't understand why this $ apprear in the second line:
How can I fix this?
command-line|relinux
edited Nov 07 '21 at 10:06
matigo
22,138
7
45
75
asked Nov 07 '21 at 10:00
Emy Alade
1
9
Please add the output of:
echo $PS1
–
Artur Meinild
Nov 07 '21 at 10:02
2
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
–
guiverc
Nov 07 '21 at 10:57
Does this answer your question?
Changing colors for user, host, directory information in terminal command prompt
–
karel
Nov 08 '21 at 06:27
0 Answers
0
echo $PS1
– Artur Meinild Nov 07 '21 at 10:02