Basic Usage
Connect to a serial port from the command line:Specifying Baud Rate
Set the connection speed with the--baud flag:
Custom Baud Rate
Common Baud Rates
Use Cases
Arduino Development
Connect to Arduino boards for serial monitor functionality:Arduino Serial Monitor
Arduino Sketch
ESP32/ESP8266 Development
ESP32 Connection
Server Console Access
Connect to server console ports for out-of-band management:Server Console
Embedded Linux
Embedded Linux Console
Networking Equipment
Access Cisco, Juniper, and other network device consoles:Network Device Console
Limitations
When operating in serial mode:Multiple Serial Connections
To work with multiple serial devices simultaneously, use separate terminal windows:Multiple Devices
Finding Serial Devices
Permissions (Linux/macOS)
You may need permissions to access serial devices:1
Check current permissions
2
Add user to serial group
3
Log out and back in
Changes take effect after logging out and back in, or run:
4
Verify access
Troubleshooting
Device Not Found
Check Device Existence
Permission Denied
Fix Permissions
Wrong Baud Rate
If you see garbled characters:- Verify the device’s baud rate in documentation
- Try common rates: 9600, 115200, 38400
- Check device settings (Arduino sketch, firmware config)
No Output
If connected but seeing no data:Troubleshooting Steps
Comparison to Other Serial Tools
Tips and Tricks
-
Create shell aliases for frequently used devices:
Shell Aliases
-
Use udev rules (Linux) to create stable device names:
/etc/udev/rules.d/99-usb-serial.rules
- Monitor connection state with device LEDs or system logs
- Save important output using WezTerm’s scrollback feature
-
Use search (
Ctrl+Shift+F) to find specific messages in serial output
Best Practices
1
Verify device specs
Always check device documentation for correct baud rate and settings.
2
Set up permissions once
Add your user to the appropriate group rather than using sudo repeatedly.
3
Use stable device names
On Linux, use
/dev/serial/by-id/* for consistent device identification.4
Close connections properly
Exit WezTerm cleanly to release the serial port for other applications.