nerdexam
CompTIA

XK0-005 · Question #267

A systems administrator is using a Linux laptop to troubleshoot network devices. The administrator runs the following command: # screen /dev/USB0 Which of the following does this command MOST likely…

The correct answer is D. It allows the administrator to interact with the character device connected to USB0. The screen /dev/USB0 command opens a terminal session that connects to the specified serial port, allowing direct interaction with a device attached via a USB-to-serial adapter. This is commonly used for console access to network equipment.

Troubleshooting

Question

A systems administrator is using a Linux laptop to troubleshoot network devices. The administrator runs the following command:

screen /dev/USB0 Which of the following does this command MOST likely accomplish?

Options

  • AIt copies the network traffic from the device connected to USB0 and screens out rejected traffic.
  • BIt logs all troubleshooting output from the monitor to external USB0 storage.
  • CIt monitors USB0 waiting for a network device to be connected to it as an Ethernet device.
  • DIt allows the administrator to interact with the character device connected to USB0.

How the community answered

(35 responses)
  • A
    3% (1)
  • B
    17% (6)
  • C
    9% (3)
  • D
    71% (25)

Why each option

The `screen /dev/USB0` command opens a terminal session that connects to the specified serial port, allowing direct interaction with a device attached via a USB-to-serial adapter. This is commonly used for console access to network equipment.

AIt copies the network traffic from the device connected to USB0 and screens out rejected traffic.

The `screen` command does not inherently copy or screen network traffic; it manages terminal sessions or serial connections.

BIt logs all troubleshooting output from the monitor to external USB0 storage.

While `screen` can log output, its primary function with a device path is to establish an interactive connection, not just log to external storage.

CIt monitors USB0 waiting for a network device to be connected to it as an Ethernet device.

The command immediately attempts to connect to the specified device and does not monitor for a connection or treat it as an Ethernet device.

DIt allows the administrator to interact with the character device connected to USB0.Correct

The `screen` command, when provided with a device path like `/dev/USB0`, establishes a serial connection to that character device. This enables a systems administrator to send commands and receive output directly from a connected network device or other serial console, facilitating direct interaction and troubleshooting.

Concept tested: Linux serial console interaction via `screen` command

Source: https://man7.org/linux/man-pages/man1/screen.1.html

Topics

#GNU Screen utility#Linux character devices#Serial console access#Network troubleshooting

Community Discussion

No community discussion yet for this question.

Full XK0-005 Practice