The Executed Command

$BASH_COMMAND is the command currently executed or about to be executed.

Examples

Print the current command :

1
echo "Hello, command: $BASH_COMMAND"

Output: Hello, command: echo "Hello, command: $BASH_COMMAND".

BashSupport Pro is a Bash IDE with support for $BASH_COMMAND – try it now!
© 2020–2022 Joachim Ansorg
Imprint
Privacy Policy
Legal