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