continue command in Linux with examples

continue is a command which is used to skip the current iteration in for, while and until loop. It takes one more parameter [N], if N is mentioned then it continues from the nth enclosing loop.


continue [N]


  • continue statement in for loop :
  • continue statement in while loop :
  • continue statement in until loop :
  • continue --help : Displays help information.

My Personal Notes arrow_drop_up

Check out this Author's contributed articles.

If you like GeeksforGeeks and would like to contribute, you can also write an article using or mail your article to See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.

Improved By : DrRoot_