until command in Linux with Examples Last Updated : 10 Oct, 2024 Comments Improve Suggest changes Like Article Like Report until command in Linux is used to execute a set of commands as long as the final command in the 'until' Commands has an exit status that is not zero. It is mostly used where the user needs to execute a set of commands until a condition is true. Syntaxuntil COMMANDS; do COMMANDS; donewhere,CONDITION: The condition that gets checked. If this evaluates to false (non-zero exit status), the loop continues. Once it evaluates to true (zero exit status), the loop terminates.COMMANDS: The set of commands that will be executed while the condition is false.Basic Example of until in LinuxHelp Option with until Command help until: This command displays the help information for until, showing basic syntax and usage. It’s useful for quickly referencing how to use the command in your scripts.ConclusionThe until command in Linux provides an effective way to execute commands as long as a condition remains false, making it useful in scenarios that require waiting for a specific condition to be met. By understanding its syntax and use cases, you can simplify loop control and automate repetitive tasks efficiently. Comment More infoAdvertise with us D DrRoot_ Follow Improve Article Tags : Technical Scripter Linux-Unix linux-command Linux-Shell-Commands Similar Reads tr command in Unix/Linux with examples The tr command is a UNIX command-line utility for translating or deleting characters. It supports a range of transformations including uppercase to lowercase, squeezing repeating characters, deleting specific characters, and basic find and replace. It can be used with UNIX pipes to support more comp 4 min read tracepath command in Linux with Examples The 'tracepath' command in Linux is a network diagnostic tool used to trace the path packets take to reach a destination, discovering the Maximum Transmission Unit (MTU) along the way. It operates similarly to the traceroute command but does not require superuser privileges and offers a simpler set 2 min read Traceroute Command in Linux with Examples In networking, understanding the path that data packets take from one point to another is crucial for diagnosing and troubleshooting connectivity issues. One of the most valuable tools for this purpose is the traceroute command in Linux. Traceroute is a command-line tool used in Linux or other opera 8 min read tree Command in Linux with Examples The tree command in Linux is a powerful, user-friendly tool that visually maps directory structures in a hierarchical, tree-like format. Unlike the basic ls command, which lists files and folders linearly, tree reveals the nested relationships between directories and their contents, making it easier 7 min read tty Command in Linux with Examples In the Linux operating system, everything is represented within a file system, including hardware devices and terminal interfaces. Among these, the terminal is also treated as a file, allowing users to interact with the system by sending inputs and receiving outputs. One essential command related to 3 min read type command in Linux with Examples The type command in Linux is a useful utility for identifying how the shell will interpret a given command. It provides information on whether a command is a shell built-in, external binary, function, or alias, helping users understand the source of the command and its behavior. The command is parti 3 min read uname command in Linux with Examples Linux, renowned for its open-source flexibility and powerful performance, offers a range of commands that reveal the inner workings of your system. Among these, the 'uname' command stands out as a versatile tool that provides key details about your Linux machine. Here, we will learn the basics of th 4 min read unexpand command in Linux with Examples To convert the leading spaces and tabs into tabs, there exists a command line utility called unexpand command. The unexpand command by default converts each space into tabs writing the produced output to the standard output. Syntax $unexpand [OPTION]... [FILE]...where, OPTION: Represents the various 3 min read uniq Command in Linux with Examples The uniq command in Linux is a command-line utility that reports or filters out the repeated lines in a file. In simple words, uniq is the tool that helps to detect the adjacent duplicate lines and also deletes the duplicate lines. uniq filters out the adjacent matching lines from the input file(tha 7 min read until command in Linux with Examples until command in Linux is used to execute a set of commands as long as the final command in the 'until' Commands has an exit status that is not zero. It is mostly used where the user needs to execute a set of commands until a condition is true. Syntaxuntil COMMANDS; do COMMANDS; donewhere,CONDITION: 2 min read Like