Network commands
Write
Write user name Enter information after return to Ctrl+d save end
Wall
Wall [message]//that is all, sent to everyone
Ping
Ping option IP address test network connectivity
-C specify number of times to send
Ifconfig
Ifconfig NIC name IP address//view and set NIC information
Eth0 Real Card
Lo:looback, loopback card for native communication and testing
Mail
mail[User Name] View Send electronic right button
Last
Lists user information that has been logged into the system so far
Lastlog
-U check the last logon time for a particular user eg, lastlog-u Lucy
Netstat
Display Network-related information
-T, TCP protocol, TCP Transmission Control Protocol, handshake three times, safe and reliable
-U, UDP protocol, User Datagram Protocol, fast, poor reliability, sometimes may not receive. QQ is the use of UDP. TCP and UDP cannot be compared for good or bad.
-L, monitoring
-R, routing, routine
-N, IP address and port number
-tlum, view the port of the native listener
-an, view all network connections
-rn, viewing the routing table
Setup
Configure the network through the graphical interface. (Only the Red Hat has this function) I have another article dedicated to the Internet
Mount
Mount. Mount [-t file system] device file point mount point
eg, mount-t Iso9660/dev/sr0/mnt/cdrom
Power off Restart command
Shutdown shut down the machine
shutdown [Options] Time
-C cancels the previous shutdown instruction
-H shutdown
-R Restart
Halt Poweroff Init 0
Restart
Reboot Init 6
Logout Sign Out
System Operation Service
0 shutdown, 1, single user 2, not fully multiuser, no NFS service 3, full multiuser
4, unassigned 5 graphical interface 6 restart
Cat
Cat/etc/inittab Modifying the system default run level
Id:3:initdefault://Very important, backup. Never id:6 ... it will always restart
RunLevel
Querying system Run Level
Linux Learning 4 network commands and shutdown restart