AI engineering glossary · Command line Git

What is command-line flag?

Command-line flag (also called Option, Switch): An option given to a command, starting with a dash (short form, -v) or two dashes (long form, --verbose), that changes how it behaves. Flags can be switches or take a value. Reading a tool's help output is the way to learn its flags.

Level: beginnerTopic: Command line Git

Command-line flag: an example

ls -lh lists files in long format with human-readable sizes, and pip install --upgrade pandas forces an update.

Related terms

More Command line Git terms

Where you learn it

Command-line flag is part of the AI Engineering Program, which teaches it with notes, a hands-on lab and an exam. The first lesson is free.

Before you go

Take the cheat sheet with you

One free PDF: the key AI-engineering terms, formulas and Python idioms. No spam; unsubscribe any time.