Skip to content
Related Articles

Related Articles

until command in Linux with Examples

View Discussion
Improve Article
Save Article
  • Difficulty Level : Easy
  • Last Updated : 27 May, 2019

until command in Linux used to execute a set of commands as long as the final command in the ‘until’ Commands has an exit status which is not zero. It is mostly used where the user needs to execute a set of commands until a condition is true.


until COMMANDS; do COMMANDS; done

Here, if the COMMANDS get evaluated to false then the statements will be executed. If the COMMANDS get evaluated to true then the no statements will be executed and control will go after the done statement.



  • help until : It displays help information.

My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!