set -x
shows all commands in bash as they are run.
to stop showing commands, reload the shell e.g. exec $SHELL
set -x && echo "hi"
exec $SHELL
# # output (stdout)
# + echo hi
# hi
# exec /bin/bash
set -x
shows all commands in bash as they are run.
to stop showing commands, reload the shell e.g. exec $SHELL
set -x && echo "hi"
exec $SHELL
# # output (stdout)
# + echo hi
# hi
# exec /bin/bash