# list-device command

The list-device command shows the currently defined
 devices.

**Synonyms:** t-stat

## Syntax

```
 list-device {device.number} {(options}
```

## Parameter(s)

| device.number | The device number to list.If the device number is not specified, all currently defined devices are listed. | |
| --- | --- | --- |
| options | h | Suppresses the header display. Only devices are displayed. |
| p | Directs the output to the system printer via the spooler. | |

## Description

The devices listed can be used as tape devices through the set-half,
 set-sct, set-floppy, or set-device
 commands.

 Devices are numbered as they display in the configuration file. The current device is noted
 with an asterisk (*). The active device is noted with a plus sign (+).

## Example(s)

In this example, the Owner column shows the PIB number that has use of the device and an
 * indicates that this PIB is the current process. A +
 indicates that this device is the *active* device (a PIB can attach more than
 one device).

```

 list-device

 Tape Status 16 Feb 2003 14:30:40
 # Type Density Owner Device Name
 ---------------------------------------------------------------------
 0 | Floppy | 3 1/2" 1.44M | | /dev/rpdsk/4
 1 | Quarter Inch | High | | /dev/rmt/0n
 2 | 4mm DAT | | | /dev/rmt/1n
 3 | 4mm DAT | | | /dev/rmt/1un
 4 | 8mm Tape | | | /dev/rmt/2n
 5 | 8mm Tape | | | /dev/rmt/2un
 6 | Floppy | Pseudo Floppy | | /usr/opt/pick/bin/abs
 7 | Floppy | Pseudo Floppy | | /usr/opt/pick/bin/data
 8 | Floppy | Pseudo Floppy | | /usr/opt/pick/bin/ref
 9 | Network | | | /home/tmp/pipein
 10 | Floppy | Pseudo Floppy | | /home/tmp/floppy
 11 | Floppy | Pseudo Floppy | | /n/dev/home/tmp/floppy
 ---------------------------------------------------------------------
```

## See also

- [chg-device command](https://d3codex.com/tcl/chg-device-command/)
- [fuser command](https://d3codex.com/tcl/fuser-command/)
- [set-device command](https://d3codex.com/tcl/set-device-command/)
- [set-floppy command](https://d3codex.com/tcl/set-floppy-command/)
- [set-sct command](https://d3codex.com/tcl/set-sct-command/)
- [t-select command](https://d3codex.com/tcl/t-select-command/)
- [t-verify command](https://d3codex.com/tcl/t-verify-command/)
- [tape modifier](https://d3codex.com/access/tape-modifier/)
- [u313c user exit](https://d3codex.com/pickbasic-flashbasic/u313c-user-exit/)

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