Linux network communication

Source: Internet
Author: User

The earliest instant communication in the history of network commands

1 Write Linzhiling
Content
Ctrl+d End

Such a letter is written out, note: Only users can send the online

2wall (Write All)
Write to all the users


3ping command
Ping 192.168.1.1
Note: The main look at packet loss rate, high packet loss indicates that the network status is not good

Ifconfig
View NIC

If you temporarily set the network card address: ifconfig eth0 192.168.214.11

4 Mail sent to users
Mail root
Write directly in the format
Enter 1 directly under Mail to view message number 1th
D 1 or D 2 delete mail

5last
View logged in user
View last logged in user

6 Viewing the path of a packet
Traceroute www.baidu.com

7 Netstat View network status
Option-T TCP protocol-u UDP protocol-L listener-R route-n display IP address and port number
Netstat-tlun See which ports are open under the current computer

Netstat-an View more detailed port information
Netstat-rn viewing the current routing table

8 setup The order of the cool blast
Note: To restart the service after the configuration is complete
Service Network restart
Note: Sometimes not effective, to re-enter the configuration file, change Onboot =yes and what equals static

9 mount commands (such as inserting a USB stick, moving the hard disk what the need to manually assign the drive letter, so that you need to implement manual mount)
The so-called mount, that is, insert new hardware: 1 assign a name to the hardware, typically sr02 create a drive letter, specify directory 3 to do the connection
Mount
Preferred to insert a disc under a virtual machine
1 Creating an empty directory Mkdir/mnt/cdrom
2 mounting Mount/dev/sr0/mnt/cdrom If it's been mounted, then UMOUNT/DEV/SRO.

Linux network communication

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.