Which command-line option is commonly used in Linux ping to specify the number of packets to send?

Options

  • A. -n
  • B. -c
  • C. -t
  • D. More than one of the above
  • E. None of the above

Correct Answer (Detailed Explanation is Below)

B. -c

Detailed Explanation

Correct Answer: -c

  • In Linux, the -c option specifies the number of packets to transmit.
  • Example: ping -c 4 8.8.8.8 sends four Echo Request packets.
  • Unlike the common Windows default, Linux ping normally continues until interrupted if no count is specified.