# list-files command

The list-files BASIC program produces
a report of all file-defining items(D-pointers) and synonym-defining
items (Q-pointers).

**Synonyms:** lf, listf

## Syntax

```
list-files {lptr} {(options}
```

## Parameter(s)

| options | f | Displays D-pointer files only. |
| --- | --- | --- |
| p | Directs output to system printer via the spooler. | |
| q | Displays Q-pointer files only. | |
The report that it produces is in two parts. The first
part is a listing of all the *local* files. This is a listing
of all files with a `d`, optionally followed by a second
character, in the dictionary code attribute (attribute 1 in the master
dictionary).

This part of the report contains:

- the dictionary name.

- the base FID.

- the dictionary modulo.

- the data-portions and their base FIDs and modulos.

- the file’s dictionary code, if it is anything other than d.

The second part of the report contains those items defined
as synonym-defining items, or Q-pointers. This includes the target
account and target file name.

## Example(s)

```
list-files (pf
```

## See also

- [d/code1](https://d3codex.com/attributedefiningitem/d-code1/)
- [lfd macro](https://d3codex.com/tcl/lfd-macro/)
- [listfiles command](https://d3codex.com/tcl/listfiles-command/)
- [Options (TCL)](https://d3codex.com/tcl/options-tcl/)
- [Synonym-defining items](https://d3codex.com/definitions/synonym-defining-items/)

---
Source: https://d3codex.com/tcl/list-files-command/ - part of the D3Codex reference.
