民國112年 第1梯次 電腦硬體裝修丙級 學科

第43題

在Linux 系統環境中,欲停用第一片網路卡需執行下列哪個指令?

題目

在Linux 系統環境中,欲停用第一片網路卡需執行下列哪個指令?

  1. (1) ifconfig eth0 down
  2. (2) ifconfig et h0 stop
  3. (3) ifconfig eth0 abort
  4. (4) ifconfig -s eth0

官方答案

(1) ifconfig eth0 down

解析

在Linux環境中,使用ifconfig指令管理網路介面。第一片網路卡命名為eth0(ethernet 0)。要停用(關閉)該介面,正確指令為「ifconfig eth0 down」,其中down參數表示停止介面運作,等效於ip link set eth0 down。選項2的「et h0」有空格且stop非正確參數;選項3的abort非ifconfig參數;選項4的「-s」為顯示統計,非停用,故答案為1。

AI 參考解析(推得答案已與官方答案比對一致),非官方公告內容,僅供備考參考。

官方資料