How To Install and Use Linux Minicom Command Tutorial with Examples?
minicom is little command line based tool used to connect serial lines. In a more pragmatic definition minicom can be used to connect modems, routers and switch console ports via serial port. Minicom is very similar features and user interface to the TELIX.
Install For Debian, Ubuntu, Kali, Mint
We can install minicom with the following command for deb based distributions.
$ sudo apt install minicom -y
Install For Fedora, CentOS, RHEL
We can also install for rpm based distributions like below.
$ sudo yum install minicom -y
We can start minicom without any option or parameter but providing a serial device is better way. We will provide a USB-Serial convertor which is located at
/dev/ttyUSB0 . We should provide the
sudo command for root privileges.
$ sudo minicom /dev/ttyUSB0
After connecting minicom we may need to exit. But things work differently in minicom application.
CTRL a is used for special key and other keys are used for different actions. We can exit like below.
CTRL a, x
We can get help with the
CTRL a, z like below.
CTRL a, z
List Current Serial Line Parameters
We can list current serial line communication parameters like below.
CTRL a, p
Change Serial Line Parameters
We can change serial line parameters while starting the minicom. We need to provide the required options and values. Some of the most used options are like below.
$ sudo minicom -b 1200 -8 /dev/ttyUSB0
minicom provides easy way to setup serial line parameters in command line GUI. We can provide the
-s option and enter
and enter to the
Serial port setup menu like below.