Q145.
在Linux 系統中,欲停用第一片網路卡需執行下列哪一個指令?
電腦硬體裝修 · 乙級 · 儀表、軟體及一般工具 · Q145
難易度分析
2 / 5
此題屬於基礎的指令語法辨識,要求考生必須精確記憶特定工具(ifconfig)所對應的狀態切換參數,而非僅憑直覺選擇通用性的動詞,屬於單純的術語與語法應用能力測試。
正確答案:①ifconfig eth0 down
① ifconfig eth0 down:ifconfig 指令搭配 down 參數是 Linux 系統中停用網路介面的標準語法,`ifconfig eth0 down` 會將 eth0(第一片網路卡)的介面狀態設為關閉,停止所有封包的收發。
錯誤選項解析
- ② ifconfig eth0 abort:abort 並非 ifconfig 指令的有效參數,Linux 網路介面管理中不存在此關鍵字,正確停用參數應為 down。
- ③ ifconfig-s eth0:ifconfig -s 是用以顯示簡短格式的介面資訊列表,並非停用指令,且語法中缺少空格分隔,屬於無效指令格式。
- ④ ifconfig eth0 stop:stop 並非 ifconfig 的有效參數,部分服務管理指令(如 systemctl stop)使用 stop,但 ifconfig 停用介面必須使用 down 參數。
Learning Tip
"此題考點為 Linux 網路介面管理指令 的正確語法。常考陷阱在於混淆不同指令系統的參數(如 systemctl 的 start/stop 與 ifconfig 的 up/down)。實務上,除 ifconfig 外,也可使用 ip link set eth0 down 達成相同效果,為較新的 iproute2 工具鏈推薦用法。"
學員答題分佈
①ifconfig eth0 down0%
②ifconfig eth0 abort0%
③ifconfig-s eth00%
④ifconfig eth0 stop0%
此答題分佈是根據學員在 LongePass 模擬考等實際作答紀錄計算而成。與考友分享這道歷屆試題與詳細解析!