Skip to main content

All Questions

0 votes
2 answers
666 views

Confused about bash prompt meaning

I found out that in bash, the $PS1 variable can be modified to change the prompt. The problem is that I'm having some trouble trying to understand the long string of codes that I was given. I did: ...
Kami-kun's user avatar
1 vote
1 answer
271 views

Unable to get terminal prompt when executing script via ssh

I have the below script that works fine when run locally cat /tmp/input.sh echo -n ">> " read env exit; I get the command prompt when i ...
Ashar's user avatar
  • 511
0 votes
0 answers
197 views

How to change Linux terminal prompt

I've been using Terminator as my terminal but after reconfiguring my display manager to 'Lightdm' after 'gdm3' crashed while installing updates, I messed something up, not with terminal, using the GUI ...
George's user avatar
  • 1
0 votes
1 answer
189 views

Unix - can i make the command line readable? [duplicate]

Let's say I have this commandline: ~/development/company/folder: and i run this command ./gradlew appRun then my command line looks like this: ~/development/company/folder: ./gradlew appRun Now, ...
bharal's user avatar
  • 1,443
5 votes
1 answer
4k views

How to set shell to wrap words for long commands?

I connect to a Slackware server. When a command is longer than the size of the putty window, the line continues in the same line, and the start of the command disappears as I continue adding to the ...
user358308's user avatar
1 vote
1 answer
1k views

Bash prompt getting garbled when I browse history?

I have MacOS and .bash_profile content: export PS1="\[\e[0;31m$\]\[\e[m\] \[\e[0;32m\w\e[m\] : \]" as a result I have pwd printed in terminal like this: but when I press up and down arrows to use ...
Vladimir Gerasimenko's user avatar
3 votes
1 answer
223 views

How to put “glue” CWD (etc.) to part of the screen instead of putting into PS1?

I suspect there’s some terminology for this question that I’m not aware of. It’s hard to check if a question has already been answered if one doesn’t know the proper vocabulary. So, sorry if this is ...
Zearin's user avatar
  • 243
2 votes
1 answer
2k views

When a command is over half the terminal size it breaks

Whenever I type in a bash command longer than about half the width of the shell window I'm in, the command breaks like it would if I filled the whole screen 3rd command in image - typed a few xs and ...
ACarter's user avatar
  • 389