"Linux learning is not difficult" Linux Network Command (3): ping command to test connectivity to the target computer

Source: Internet
Author: User
Tags network function

27.3 "Linux learning is not difficult" Linux Network Command (3): ping command to test connectivity to the target computer


Use the ping command to test connectivity to the target computer. The ping command uses the ICMP transport protocol to emit information that requires a response, and if the remote host has no problem with the network function, it will respond to the message and be informed that the host is functioning properly.

Command syntax:

ping [options] [target]

The meanings of the options in the command are as shown in the table.

Options

option meaning

-C < completion times >

set the number of responses required to complete

-S < packet size >

Specifies the number of bytes of data to be sent. The default value is 56

-V

Show verbose output information

-R

Record Routing

Example: Testing connectivity to Web site www.sina.com.

[[email protected] ~]# Ping www.sina.com

Example: testing connectivity to a computer 192.168.0.200, sending 4 ICMP packets.

[Email protected] ~]# ping-c 4 192.168.0.200


This article extracts from "Linux Learning is not difficult" textbook, which is one of the most practical, theoretical and practical Linux Introductory materials. To read the entire book, visit the Linux ops (www.linuxywz.com) website .




Linux learning is not difficult "Linux Network Command (3): Ping to test connectivity between target computers

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.