# Flags and Options

*noun*

say it: **“FLAGZ and OP-shunz”** **/flæɡz ənd ˈɑːpʃənz/**

Settings written after a command, usually a dash and a letter such as -l, that change what the command does.

## What is **Flags and Options**?

**Flags** (options) change how a command behaves. Short ones use one dash (`-l`) and can be combined (`-la`); long ones use two (`--all`).

```bash
ls -l -a
ls -la
ls --all
```

## In a sentence

- “Diego read the help page to learn the **flags and options** cp understands.”
- “The -a in ls -a is one of the command's **flags and options**.”

Level: Apprentice · [More Unix terms at this level](https://www.ask-codey.com/glossary?category=unix&level=2)

Updated: November 9, 2026

Source: https://www.ask-codey.com/glossary/flags-and-options
