RHEL Linux - Red Hat System Administration Practice Exam

Disable ads (and more) with a membership for a one time $4.99 payment

Study for the RHEL Linux - Red Hat System Administration Exam. Enhance your knowledge with flashcards and multiple-choice questions, complete with hints and explanations. Prepare for your certification!

Practice this question and more.


Which command is used to test connectivity only?

  1. traceroute

  2. ip

  3. ping

  4. route

The correct answer is: ping

The command used to test connectivity only is the ping command. This utility sends Internet Control Message Protocol (ICMP) echo request packets to the target host and listens for echo reply packets. By doing this, it helps determine if the target is reachable and how long packets take to travel from the source to the destination and back. The primary function of ping is to check both the availability and the round-trip time to a particular IP address or hostname, making it a straightforward tool for diagnosing network connectivity issues. Other options serve different purposes. For instance, traceroute is designed to trace the path that packets take to a network destination, providing details about the hops and the time taken for each. The ip command is used for a variety of networking tasks, including IP address management, routing, and network device configuration. Finally, the route command is used to manually view and manipulate the routing table on the system. While all these commands are valuable for network troubleshooting, only the ping command is specifically aimed at testing connectivity.