Linux Learning 4 network commands and shutdown restart

Source: Internet
Author: User

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

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.