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