Synopsis
Description
Thelist command (alias: ls) displays all models currently available in your local library. It shows:
- Model names
- Model IDs (digest)
- Size on disk
- Last modified time
Arguments
Optional prefix to filter models. Shows only models whose names start with this prefix.
Options
Thelist command has no flags or options.
Examples
List All Models
Show all models in your library:Filter by Prefix
Show only models starting with “llama”:Using the Alias
Thels alias works identically:
Output Format
The output is formatted as a table with these columns:Full model name including tag (e.g.,
llama3.2:latest)First 12 characters of the model’s SHA256 digest. Uniquely identifies the model.
Disk space used by the model. Shown in human-readable format (MB, GB).For cloud models, displays ”-” since they’re not stored locally.
When the model was last pulled or created:
- “5 minutes ago”
- “2 hours ago”
- “3 days ago”
- “1 week ago”
- “Never” (for models that haven’t been updated)
Understanding Model Names
Model names follow this format:- name: The model name (e.g.,
llama3.2,mistral) - tag: The variant or version (e.g.,
latest,7b,13b-instruct)
:latest is assumed.
Disk Usage
To see total disk space used by all models:Scripting Usage
Extract model information for scripts:Common Patterns
Find Large Models
Find models over 5GB:List by Modification Time
Find recently updated models:Check for Specific Tag
List all 7B parameter models:Model Storage Location
Models are stored in:- Linux/macOS:
~/.ollama/models - Windows:
%USERPROFILE%\.ollama\models - Custom: Set via
OLLAMA_MODELSenvironment variable
Cloud Models
Cloud models (models running on remote servers) appear in the list but show:- Size:
-(not stored locally) - Different ID format
Empty Library
If no models are installed:Environment Variables
Ollama server address to query for the model list
Directory where models are stored (affects local vs cloud display)
Exit Codes
0- Success1- Error (server not running, etc.)
Troubleshooting
Server Not Running
No Models Showing
If the command succeeds but shows no models, you haven’t pulled any yet:Comparison with Other Commands
| Command | Purpose |
|---|---|
ollama list | Show all available models |
ollama ps | Show currently running models |
ollama show MODEL | Show detailed info about one model |
Related Commands
ollama ps- List currently running modelsollama show- Show detailed information about a modelollama pull- Pull a new modelollama rm- Remove a model from the libraryollama create- Create a custom model