Linux Common Commands (second edition)--Network communication commands

Source: Internet
Author: User

Network communication commands

1.Write/usr/bin/write

Format: Write [ user name ]

#用于向用户发送信息, if the user is already logged into the server host, otherwise, there is no way to leave him a message, so,write is a real-time communication tool

#以ctrl+d as communication ends

E.g.write Guest

2,wall[write all]/usr/bin/wall

Used to broadcast information to all users

wall [message] [ file name ]

3, ping/usr/sbin/ping# only root can execute , test the network connectivity

Format: ping [ option parameter] IP address

-c[count] N:ping n times to end program run

Ping-c 4 192.168.9.5: Works the same as Windows .


-s[size] Size: Change the size of the package by default to 65B

Ping-s 6000 192.168.1.1

How to troubleshoot network faults in the attached-linux

1)Ping The other side of the host, if you can ping , indicating that the network is not a problem

2) cannot ping ,ping native IP address

If you can ping the Pass, then the TCP/IP protocol is not a problem.

3) native IP address Ping is not through,ping 127.0.0.1

If you can ping the TCP/ IP Protocol installation is not a problem, as long as the TCP/ IP protocol is installed, even if there is no network card, pensive IP The address can also be ping through.

And, even if ping a host and ping , and not necessarily the network has a problem, there are many kinds of possible causes this situation, and later to study carefully.

4. ifconfig [/sbin/ifconfig] #用于查看网卡信息, the-a option is added by default in Linux , but in UNIX The add-a option must be displayed in the system .

e.g.

Ifconfig

Ifconfig eth0// View physical NIC only

Ifconfig ech0 192.168.1.104// set IP address to ~, only temporary effect

Attached-linux Unspoken rules: If you want to change the settings, you must write to the configuration file

Linux Common Commands (second edition)--Network communication commands

Related Article

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.