Score:0

How do I get the terminal to stop outputting additional text from basic bash commands?

sr flag

I am not sure what exactly is the name of this supplemental text that pops up whenever I am using the terminal, but it shows up when I am running commands. Previously it was not there. I made some modifications to PS1 in my .bashrc recently which may have caused it, but I have reverted .bashrc from the file in /etc/skel and the issue is still there. The effect is something like this.


user@daniel-acer-ubuntu:~$ ls
+ ls --color=auto
 Desktop   Documents   Downloads
user@daniel-acer-ubuntu:~$ cd 
+ cd

EDIT: Restarting my computer fixed this -- but I would still be interested in learning what this supplemental text is and why it's there so I can debug my changes.

Score:3
cn flag

You typed mistakenly the command:

set -x

After that, all commands you enter will be echoed on the screen preceded with a + sign (the contents of the PS4 "bash variable"). Type:

set +x

to reset this.

For more information, read the man page for bash (set Shell Builtin Command) or see this and this.

Daniel avatar
sr flag
Ah yes this was the culprit! Thank you!
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.