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