Jump to content

Bash colon : command

From Squishu Wiki

General

  • This is a null command
  • It's an alias for true
  • Use it in while loops to make an infinite loop
    • while :
  • In extremely old scripts the : was used to identify comments