Linux notes (vii)-Network commands

Source: Internet
Author: User

(1) Send message to User: Write
Example: Write admin (ctrl+d end)
(2) Broadcast information: wall
Example: Wall Hello world!
(3) Test network connectivity: Ping
-C Send Times
Example: Ping-c 3 192.168.1.188
(4) View, set network card information: ifconfig
Example: Ifconfig
Ifconfig eth0 192.168.1.188
(5) View, send e-mail: Mail
Example: Mail
Mail Admin Send Message
H View List
D 3 Delete 3rd
(6) View all reboots, user logon hours: Last
(7) View all users last login time: Lastlog
-U view only one user UID login information
Example: Lastlog-u 0
(8) Show the path of the packet to the host, trace the route: traceroute
Example: Traceroute www.baidu.com
(9) Display network related information: netstat
-T TCP protocol
-U UDP protocol
-L Monitoring
-R Routing
-N Display IP address and port number
-P Displays the program name that establishes the associated link
Example: NETSTAT-TLNP viewing the port of native listening
Netstat-an View all network connections on this computer
Netstat-rn viewing the native routing table

Linux notes (vii)-Network commands

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.