# dev-make command (UNIX)

The dev-make BASIC program adds an entity
to the system. This command is normally used to add devices to the
system. The most common usage is to create a serial device to be used
with the BASIC get and send statements, even if there is no D3 process
connected to the device.

## Syntax

```
dev-make -t type{-n number} {-a arg{,arg}}
```

## Parameter(s)

| -t type | Entity type: serial |
| --- | --- |
| -n number | Entity number. If not specified, the system allocates a number. |
| -a arg | More than one -a option, or several arguments can be specified within one -a clause, separated by commas. The arguments depend on the type and are optional. |

## Arguments

| arg | UNIX device name, between quotation marks. |
| --- | --- |
When the entity is successfully created, an entry is added
to the devs file, but not to the devs,init file.

Warning: This command
can be run only on the dm or SYSPROG account. **For UNIX:** Supports
the dev-make command. The current version supports
only creating a *serial* device.

 Note: Only serial devices are supported on Unix systems. For example,
 pseudo tape devices are not supported.

## Example(s)

Creates the serial device s100
associated to the UNIX device /dev/tty32. The
device is reprogrammed the D3 way, that is, in raw mode, no echo.
The hardware characteristics (baud rate and so on) are unchanged.
When the device is successfully created, the newly created device
can be attached and used with BASIC send and get statements. The hardware characteristics can be changed
with the set-port command, using the full entity
ID s100, only once the device has been attached, because the device
is not actually opened when the D3 entity is created, but only at
attach time.

```
dev-make -t serial -n 100 -a "/dev/tty32"
```

## See also

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

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