天天看點

CLI 指令行界面的使用

1.指令幫助系統

IOS提供了一個簡單而又強有力的幫助系統,在任何提示符下隻需鍵入:?,那麼在這個提示符下的所有使用的指令及簡單的解釋就能自動地呈現出來。

例如:

router#clock ?

set Set the time and date

Router#clock set ?

hh:mm:ss Current Time

顯示目前指令狀态下的可使用指令:

Router#?

access-enable Create a temporary Access-List entry 建立一個臨時的通路清單項

access-profile Apply user-profile to interface 對該接口顯示使用者使用概況

access-template Create a temporary Access-List entry 建立一個臨時的通路清單項

alps ALPS exec commands 配置航空協定集的執行指令

archive manage archive files 管理存檔檔案

bfe For manual emergency modes setting 設定為手動緊急模式

cd Change current directory 改變目前目錄

clear Reset functions 功能重置

clock Manage the system clock 管理系統時鐘信号

configure Enter configuration mode 進入配置模式

connect Open a terminal connection 連結一個終端

copy Copy from one file to another 複制檔案

debug Debugging functions 調試

delete Delete a file 删除檔案

dir List files on a file system列出目前目錄

disable Turn off privileged commands 關閉特權指令

disconnect Disconnect an existing network connection 關閉一個連接配接

elog Event-logging control commands 事件日志記錄控制指令

enable Turn on privileged commands 進入特權指令

erase Erase a file-system 删除

exit Exit from the EXEC 退出

help Description of the interactive help system 幫助

lock Lock the terminal 鎖住終端

More--------------------------------------------------------------

2.異常資訊提示

2.1輸入指令出錯

例如,輸入錯誤指令

routerB#clck set

%Invalid input detected at ‘^’marker.

其中^符号表示輸入指令出錯之處,解決方法是輸入正确指令。

2.2輸入不完整指令

例如,routerB#clock

%Incomplete  command

系統會提示 Incomplete command 資訊,表示指令不完整,解決方法是輸入指令 ROUTERB#CLOCK ?.

2.3輸入指令不唯一

因CISCO允許對一些指令采用縮寫形式寫入,隻要具有唯一性即可。但有時由于使用者縮寫太過随意,則可能會造成輸入縮寫指令的指代不明,這時系統無法解釋該縮寫指令。

3.指令編輯系統

快捷鍵

功能

ctrl+b

光标左移一個字元

ctrl+p

得到上一條指令

ctrl+f

光标右移一個字元

ctrl+n

得到下一條指令

<esc><B>

光标左移一個單詞

BACK

删除左字元

<esc><F>

光标右移一個單詞

ctrl+d

删除右字元

ctrl+A

移至行首

ctrl+w

删除一個單詞

ctrl+E

移至行尾

<esc><D>

删除右一單詞

下一篇: putty

繼續閱讀