1.2. minicom - friendly serial communication program

sudo apt-get install minicom
		

环境变量

MINICOM='-m -c on'
export MINICOM		
		

setup

neo@debian:~$ sudo minicom -s
		

TUI

+-----[configuration]------+
| Filenames and paths      |
| File transfer protocols  |
| Serial port setup        |
| Modem and dialing        |
| Screen and keyboard      |
| Save setup as dfl        |
| Save setup as..          |
| Exit                     |
| Exit from Minicom        |
+--------------------------+
		

选择 Serial port setup

    +-----------------------------------------------------------------------+
    | A -    Serial Device      : /dev/ttyS0                                |
    | B - Lockfile Location     : /var/lock                                 |
    | C -   Callin Program      :                                           |
    | D -  Callout Program      :                                           |
    | E -    Bps/Par/Bits       : 9600 8N1                                  |
    | F - Hardware Flow Control : Yes                                       |
    | G - Software Flow Control : No                                        |
    |                                                                       |
    |    Change which setting?                                              |
    +-----------------------------------------------------------------------+
            | Screen and keyboard      |
            | Save setup as dfl        |
            | Save setup as..          |
            | Exit                     |
            | Exit from Minicom        |
            +--------------------------+
		

使用A键和E键分别修改串口设备和波特率,然后ESC间推出,再将光标移动到Exit处按Enter键

		
Welcome to minicom 2.3

OPTIONS: I18n
Compiled on Sep 25 2009, 23:45:34.
Port /dev/ttyS0

               Press CTRL-A Z for help on special keys


Translating "z"...domain server (255.255.255.255)
% Unknown command or computer name, or unable to find computer address
Switch>AT S7=45 S0=0 L1 V1 X4 &c1 E1 Q0
        ^
% Invalid input detected at '^' marker.

Switch>en
Password:
Switch#show
Switch#show running-config
Building configuration...

Current configuration : 3265 bytes
!
version 12.2
no service pad
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname Switch
!
boot-start-marker
boot-end-marker
!
enable secret 5 $1$zQct$RlZjEVk3PV//OrS4KYm46.
enable password 123456
!
no aaa new-model
system mtu routing 1500
ip subnet-zero
!
no ip dhcp snooping information option
!
 --More--

 CTRL-A Z for help |  9600 8N1 | NOR | Minicom 2.3    | VT102 |      Offline
 		
		





原文出处:Netkiller 系列 手札
本文作者:陈景峯
转载请与作者联系,同时请务必标明文章原始出处和作者信息及本声明。

你可能感兴趣的:(1.2. minicom - friendly serial communication program)