# Glob

*noun*

say it: **“GLOB”** **/ɡlɑb/**

A file-name pattern made with wildcards, such as \*.jpg, that the shell swaps for every matching name in the folder before the command runs.

## What is a **glob**?

A **glob** is a file-name pattern, such as `*.jpg` or `receipt-2026-0[1-3].pdf`, built from wildcards. Before the command runs, the shell swaps the glob for every name in the folder that fits it, so the command never sees the star. When nothing fits, bash leaves the pattern as it was.

```bash
echo *.jpg
# IMG_2041.jpg IMG_2042.jpg IMG_2043.jpg IMG_2051.jpg
```

## In a sentence

- “The **glob** receipt-2026-0\[1-3\].pdf matched only the first three months.”
- “Sam typed echo \*.jpg first, to see which names the **glob** would catch before moving them.”

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

Updated: November 10, 2026

Source: https://www.ask-codey.com/glossary/glob
