while command in Linux is used to repeatedly execute a set of command as long as the COMMAND returns true. The test command is given and all other commands are executed till the given command’s result satisfies, when the command’s result become false, the control will be out from the while command.
while COMMANDS; do COMMANDS; done
- help while : It displays help information.
- du Command in LINUX
- who command in Linux
- od command in Linux with example
- SED command in Linux | Set 2
- 'dd' command in Linux
- cp command in Linux with examples
- ps command in Linux with Examples
- join Command in Linux
- ar command in Linux with examples
- tee command in Linux with examples
- gdb command in Linux with examples
- df Command in Linux with examples
- top command in Linux with Examples
- cc command in Linux with Examples
- tar command in Linux with examples
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to email@example.com. 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.