DELAPARRA
Index
Color
NL
Category: CLI flags

-a, --all (All)

Explained by Updated

What is -a, --all (All)?

-a, --all (All): Include everything — hidden files, stopped containers, tracked and untracked changes — instead of just the default subset. -a or --all tells a command to include what it normally hides. ls -a shows hidden files whose names start with a dot. docker ps -a lists stopped containers as well as running ones. git add -A stages new, changed and deleted files in one go.

Definition source Coders Lingo, CC BY 4.0

Frequently asked questions about -a, --all (All)

How is -a, --all (All) used in practice?

The default view is usually the one you need most often, which is why the rest is hidden. When something seems to be missing, -a is a good first guess. A container that crashed on start will not appear in docker ps, but it will appear in docker ps -a, along with its exit code.

What should you keep in mind with -a, --all (All)?

Take care when you combine --all with an action instead of a listing. git add -A will also stage files you did not mean to commit, such as a local .env file. Check git status first.

At a glance

CategoryCLI flags
Explained by
Updated

More CLI flags terms

All terms starting with a number or symbol

Skills

Download all skills (zip)

Manuals

Related services

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.