1. [Home](<https://delaparra-services.nl/>) 
1. [Knowledge hub](<https://delaparra-services.nl/knowledge-hub>) 
1. [-c, --count, --config (Count / Config)](<https://delaparra-services.nl/knowledge-hub/c-count-config-count-config>)

  

Category: CLI flags 

# -c, --count, --config (Count / Config)

  Explained by [Reinier de la Parra](<https://delaparra-services.nl/about>)  Updated November 25, 2026    

## What is -c, --count, --config (Count / Config)?

 

-c, --count, --config (Count / Config): Another flag whose meaning shifts by tool — often "count the matches" or "use this config file". ` -c ` is one of those short flags that means something different in almost every tool. In ` grep -c ` it counts matching lines instead of printing them. In ` git -c ` it sets a configuration value for one command. In many other tools it points to a configuration file, as in ` nginx -c /etc/nginx/custom.conf `.

 

Definition source [Coders Lingo](<https://coderslingo.com/resources/open-dataset/>), [CC BY 4.0](<https://creativecommons.org/licenses/by/4.0/>)

 

## Frequently asked questions about -c, --count, --config (Count / Config)

  

### How is -c, --count, --config (Count / Config) used in practice?

 

Short flags are cheap to type, so tool authors reuse the same letters for unrelated things. That is fine at a terminal where you can read the help text. It is a risk in scripts, where nobody looks closely.

    

### What should you keep in mind with -c, --count, --config (Count / Config)?

 

In a script, use the long form when there is one. ` --count ` and ` --config ` explain themselves to the next person who reads the file, and they protect you if a future version of the tool changes what ` -c ` means.

 

## At a glance

   CategoryCLI flags Explained by[Reinier de la Parra](<https://delaparra-services.nl/about>) UpdatedNovember 25, 2026

 

## More CLI flags terms

 

- [--no-X, --without-X (Negation flag)](<https://delaparra-services.nl/knowledge-hub/no-x-without-x-negation-flag>) 
- [--version, -V (Version)](<https://delaparra-services.nl/knowledge-hub/version-v-version>) 
- [-a, --all (All)](<https://delaparra-services.nl/knowledge-hub/a-all-all>) 
- [-f, --force (Force)](<https://delaparra-services.nl/knowledge-hub/f-force-force>) 
- [-h, --help (Help)](<https://delaparra-services.nl/knowledge-hub/h-help-help>) 
- [-i, --interactive (Interactive)](<https://delaparra-services.nl/knowledge-hub/i-interactive-interactive>)

 

[All terms starting with a number or symbol](<https://delaparra-services.nl/knowledge-hub#letter-other>)

 

## Skills

 

- ### CLI flag safety

 

Use before running or suggesting shell commands with flags, especially destructive or broad ones (-f/--force, -r/-R recursive, -a/--all, -y/--yes, prune, --hard), and when a user asks what a flag means (-v, -q, -n/--dry-run, -h, -o, -p, -t, -u, -w, -x, -c, -i). Explains flags per tool and prefers dry runs and narrow scopes.

 [View skill](<https://delaparra-services.nl/skills/cli-flag-safety>) [Download zip](<https://delaparra-services.nl/skills/cli-flag-safety/download>) 
- ### Docker Destructive Command Guardrails

 

Use this skill before running, or recommending, any Docker command that deletes, wipes, resets, or otherwise irreversibly changes state — even if the user just says to "clean up", "clear the cache", "start fresh", "wipe everything", "nuke it", "reset", "force remove", or "tear down" Docker resources. Covers generic Docker CLI destructive operations not owned by a more specific skill — \`docker rm\`,

 [View skill](<https://delaparra-services.nl/skills/docker-destructive-guardrails>) [Download zip](<https://delaparra-services.nl/skills/docker-destructive-guardrails/download>) 
- ### ShellCheck Configuration and Static Analysis

 

Master ShellCheck static analysis configuration and usage for shell script quality. Use when setting up linting infrastructure, fixing code issues, or ensuring script portability.

 [View skill](<https://delaparra-services.nl/skills/shellcheck-configuration>) [Download zip](<https://delaparra-services.nl/skills/shellcheck-configuration/download>)

 [Download all skills (zip)](<https://delaparra-services.nl/knowledge-hub/c-count-config-count-config/skills.zip>)

 

## Manuals

 

- [The terminal commands you actually need](<https://delaparra-services.nl/manuals/terminalcommandos-die-je-nodig-hebt>) 
- [The terminal and PowerShell](<https://delaparra-services.nl/manuals/de-terminal-en-powershell>)

 

## Related services

 

- [Your own coding agent](<https://delaparra-services.nl/services#service-06>)

If you want to use a coding agent, we provide all the infrastructure to help it work efficiently.

 

## Need any help?

 

Stuck on one of these in your own project? Tell me what you are working on and I will tell you how I would approach it.

  [Get in touch](<https://delaparra-services.nl/availability>)

[HTML version](https://delaparra-services.nl/knowledge-hub/c-count-config-count-config)
