Bash → Variables → POSIX → This pageLINENO$LINENO contains the line number, which is currently being executed.LinksBash manualExamples1 2 # prints line 2, this comment is line 1 echo "line $LINENO" BashSupport Pro is a Bash IDE with support for $LINENO – try it now!