# dev-list command

The dev-list BASIC program lists all
current devices on the system.

## Syntax

```
dev-list {options}{(p} {number}
```

## Parameter(s)

| options | Available options are: |
| --- | --- |
| ? | Displays the help screen. |
| l | Lists only the current direct line printers. |
| m | Lists only the current magnetic tape devices. |
| n | Lists only the current sharable Windows printers. |
| p | Sends the specified list to the printer. |
| s | Lists only the current serial devices (printers and terminals). |
| t | Lists only the current Telnet devices. |
| u | Lists only the current unknown devices (including RPC). |
| v | Lists only the current SSL devices. |
| w | Selects the Workstation Telnet line and mvTerm devices. |
| y | Selects the Workstation printer devices. |
| z | Selects the Workstation serial devices. |

## Example(s)

Lists all devices on the system.
The output looks like this:

```
dev-list
Seq Typ Ref# Device-Type Device-Desc
=== === ==== =========== ===========
1 M 0 TAPE (Floppy) \\.\A
2 M 1 TAPE (Pseudo) C:\Program Files\RocketSoftware\D3\D3Programs\D3Data.D3P
3 M 2 TAPE (Pseudo) C:\Program Files\RocketSoftware\D3\D3Virtual\Pseudo0.D3P
4 T - TELNET (SERVER) TCP port 9999 (Special Server)
5 T - TELNET (SERVER) TCP port 23 (Main Server)
6 T 1 TELNET (Client) IP addr 127.0.0.0:4050
```
Lists any direct printers.

```
dev-list l
```
Lists all magnetic tape devices on the system and sends
the list to the printer.

```
dev-list m (p
```

## See also

- [dev-make command (UNIX)](https://d3codex.com/tcl/dev-make-command-unix/)
- [devs file](https://d3codex.com/systemfiles/devs-file/)
- [Entity](https://d3codex.com/definitions/entity/)

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