> For the complete documentation index, see [llms.txt](https://htooaunklinn-organization.gitbook.io/htooaunklinn-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://htooaunklinn-organization.gitbook.io/htooaunklinn-docs/hardware-and-iot/arduino-on-macos.md).

# Arduino on MacOS

### Arduino Serial Port and Process Management

#### Checking Arduino Serial Ports:

List all Arduino devices connected to your system:

```
ls /dev/tty.*
```

#### Managing Processes:

Find the process using the USB modem port:

```
lsof | grep /dev/[cu.usbmodemport]
```

Terminate a specific process by ID:

```
kill -9 [PID]
```
