Skip to content
Related Articles
Get the best out of our app
GFG App
Open App
geeksforgeeks
Browser
Continue

Related Articles

for command in Linux with Examples

Improve Article
Save Article
Like Article
Improve Article
Save Article
Like Article

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.

My Personal Notes arrow_drop_up
Last Updated : 15 May, 2019
Like Article
Save Article
Similar Reads
Related Tutorials