Open serial (COM1) line on Linux to manage a switch through the console

I have connected a switch to a PC with a serial cable, and I want to manage it. What utility can I use to open a serial line and manage the switch through the console?

On Windows I used PuTTY (serial line COM1).


Minicom. Look here for some tutorial.


GNU Screen will do this as well. You just provide the argument of whatever device you are using, for example:

screen /dev/ttyUSB0
screen /dev/ttyS0

Like any other file, you will need read write privileges for the /dev/tty* devices. See the 'Window Types' section of man screen to see how to specify the baud rate etc, but screen can usually figure this out.