COMMANDER1.0
← All guides
LEARN / GUIDE

Arguments and flags

Arguments are values passed to a program. Options change its behavior. An option may consume the next argument as its value.

What to remember

Many GNU utilities support -- to end options. This helps when a filename starts with a hyphen. The convention is not universal: check the program manual.

An example to inspect

grep -n -e 'error' -- './app.log'
Try the related tool ↗
Examples target GNU/Linux and Bash. Read your locally installed manual before applying commands to important data.