Where Do Serial Ports Show Up In Linux?
Serial ports typically show up as files under the
/dev/ folder. They are usually prefixed with
tty. Common names include:
|A common name for a generic USB-to-serial adapter. Most FTDI or Prolific adapters show up with this name.|
|Arduinos show up under this name. ACM stands for "Abstract Control Model".|
|Some UART ports on SoC devices (such as the Xilinx Zynq) show up with this name.|
Changing The Permissions On A Serial Port
You can change the permissions for a serial port so you don’t have to keep using
sudo by typing:
/dev/ACM0 is the file corresponding to the serial port you wish to control.
You can permanently change the permissions by adding the user to the group dialout with the following command:
which for the current user would just be:
Note that this depends on the
dialout group already existing (which is normally the case).
This work is licensed under a Creative Commons Attribution 4.0 International License .
- Users, Groups, And Permissions In Linux
- How To Change The IO Scheduling Class And Priority In Linux