I'm using a Ubuntu Linux system, and every command I enter is displayed on the next line, followed by the output of the command. For example:
root@dpkube165:~# ls
ls <--- why is this here?
Desktop Documents Downloads
root@dpkube165:~# date
date <--- or this?
Mon Mar 19 11:24:59 EDT 2018
root@dpkube165:~# echo "Hello, world!"
echo "Hello, world!" <--- or this?
Hello, world!
I thought it might have to do with the prompt, which is as follows (PS1):
\[\e]0;\u@\h: \w\a\]${debian_chroot:+($debian_chroot)}\u@\h:\w\$
but reviewing online guides to prompt escape sequences didn't turn up anything obvious.
Best Answer
It looks like you have
-v
set (something is runningset -v
).To reverse this, run
set +v
.See the
bash
manpage (under the "Shell Builtin Commands" section) for more information on theset
built-in command.Alternatively run
help set
from withinbash
for more direct access to the help text.