select command in Linux with examples
select command in Linux is used to create a numbered menu from which a user can select an option. If the user enters a valid option then it executes the set of command written in select block and then ask again to enter a number, if a wrong option is entered it does nothing. If user enters nothing and simply press ‘enter‘ the option menu gets printed.
Syntax:
select NAME [in WORDS ... ;] do COMMANDS; done
Example:

Options:
- help select : It displays help information.

Recommended Posts:
- man command in Linux with Examples
- look command in Linux with Examples
- cut command in Linux with examples
- gcc command in Linux with examples
- tar command in Linux with examples
- rev command in Linux with Examples
- cal command in Linux with Examples
- last command in Linux with Examples
- scp command in Linux with Examples
- pwd command in Linux with Examples
- which command in Linux with examples
- ed command in Linux with examples
- yes command in Linux with Examples
- df command in Linux with Examples
- du 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 contribute@geeksforgeeks.org. 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.



