Search exams, classes and guides
Search...
English
Sign in
Sign in
Home
Practice
Discover
Performance
More
CompTIA Linux+ XK0-006
Automation, Orchestration, and Scripting
Card 10 of 113
10 / 113
What are the two valid syntaxes for defining a function in Bash?
Front
What are the two valid syntaxes for defining a function in Bash?
Back
name() { commands; } and function name { commands; }. Both create a reusable command group that runs in the current shell, and the definition must appear before the function is called.
Show the back
Press the card to see the back
Study this deck