Open In App

for command in Linux with Examples

Last Updated : 15 May, 2019
Improve
Improve
Like Article
Like
Save
Share
Report

for command in Linux is used to repeatedly execute a set of command for every element present in the list.

Syntax:

for NAME [in WORDS ... ] ; do COMMANDS; done

Example:

Options:

  • help for : It displays help information.


Like Article
Suggest improvement
Previous
Next
Share your thoughts in the comments

Similar Reads