CompTIA A+ Core 2 (220-1202)Operating SystemsEasy

A technician needs to quickly view the current network configuration, including the IP address, subnet mask, and default gateway, of a Linux workstation. Which command-line tool should the technician use?

  1. Aroute
  2. Bifconfig
  3. Cping
  4. Dnetstat
Show answer & explanation

Correct answer: B. ifconfig

The `ifconfig` command is used on Linux systems to configure, view, or manage network interface parameters, including IP address, subnet mask, and default gateway.

Why the other options are wrong

  • A. The `route` command is used to view or manipulate the IP routing table.
  • C. The `ping` command is used to test network connectivity to a host.
  • D. The `netstat` command displays network connections, routing tables, and interface statistics.

ifconfig

A command-line utility for configuring, viewing, and managing network interfaces on Unix-like operating systems, including Linux.

  • Displays IP address, subnet mask, and other interface details.
  • Can be used to bring interfaces up or down.
  • Often superseded by 'ip' command in modern Linux distributions but still widely recognized.

Memory trick: If you want to see the configuration, just use 'ifconfig'.

More Operating Systems questions