---

The Null Command: A Bash Command that does nothing but is still useful

The Bash Null command, also known as the Shell colon command due to the command name being the colon “:” character. This builtin command doesn’t do anything but can still be quite helpful either to do block comments in Bash, write debug logs, or even to assign a variable if not already set.

Get the Free Newsletter!

Subscribe to Developer Insider for top news, trends, & analysis