---

Bash Script: Flags Usage with Arguments Examples

If you have any experience on the Linux command line, then you should have run into command flags, which help us modify the behavior of a command that we are executing.For example, if we execute the ls -l command, the -l part of the command is a flag that we are passing as an argument to ls. This same functionality can be used in a Bash script, allowing us to pass some input to the script through flags when we are executing the script.

Get the Free Newsletter!

Subscribe to Developer Insider for top news, trends, & analysis