Linux Learning Notes

Source: Internet
Author: User

Linux Common Commands

VI. Network Commands

1. Write [ online username ] to send messages to users logged in at the terminal

can be used first W.H.O. command to view online users

650) this.width=650; "Src=" https://s2.51cto.com/wyfs02/M02/8F/05/wKiom1jRWrjiKFFvAAA6UWWBJ8k653.png-wh_500x0-wm_ 3-wmp_4-s_3726785790.png "title=" Cc.png "alt=" Wkiom1jrwrjikffvaaa6uwwbj8k653.png-wh_50 "/>

User Yzt receive the following

650) this.width=650; "Src=" https://s4.51cto.com/wyfs02/M02/8F/03/wKioL1jRWtrj-SudAABAd-tn7vk963.png-wh_500x0-wm_ 3-wmp_4-s_3686602135.png "title=" Image 4.png "alt=" Wkiol1jrwtrj-sudaabad-tn7vk963.png-wh_50 "/>

in the edit content when the Ctrl + backspace Delete, Ctrl+d Save Send

2. Wall [ message content ] sends messages to all users (including senders, just like broadcasts)

3. Ping [IP address ] casing,Linux has been ping down by default

- C number of packets sent

which Packet Loss for packet loss rate, observe network status

650) this.width=650; "Src=" https://s4.51cto.com/wyfs02/M02/8F/03/wKioL1jRWxWhNSmcAABk2d9KkXQ724.png-wh_500x0-wm_ 3-wmp_4-s_1505805379.png "title=" Image 6.png "alt=" Wkiol1jrwxwhnsmcaabk2d9kkxq724.png-wh_50 "/>

4. Ifconfig (interface Configure) Check the network status, you can temporarily configure IPcard, to save the need to change the configuration file

5. Mail [ user name ] send a message to a user

Ctrl+d Save Send

Mail without parameters, you can view the messages that are received by this computer.

before the message name is N marked, as unread messages.

N View List

d [ mail serial number ] Delete Message

Q Exit

6  . Last displays all user logon record information

Lastlog Show last login information for all users

7. traceroute [ URL ] Displays the path of the packet to the host, which can be used to troubleshoot the cause of network failure

8. Netstat View network and port status

- T TCP Protocol

- u UDP Protocol
-L monitoring

-tuln to view the port that the native listens on

-an View all monitoring

-rn View the routing list, Gateway

9  . setup RedHat commands to quickly configure the network ( automatic DHCP acquisition)

Note: The network needs to run after configuring Service Network Restart make a change save configuration

Mount [ device ] [ mount point ] mount file system, such as windows NTFS partition , u disk,CD and so on.

like Mount . CD (ISO): mout- t iso9660 /dev/sr0/mnt/cdrom, the red part can be omitted and the system can be automatically identified.

umount [ device file name ] Uninstall You must uninstall and remove the device first

Seven, shutdown restart

1. Shutdown shutdown command halt can also be shut down, both commands will be in the execution of sync, empty the buffer, the server generally can not shutdown, only restart !!!!!!!!!!!!

-H (Halt) turn off the machine

-R (reboot) Restart

Time Specified Time , also available Now

Poweroff (not recommended) Disconnect the power supply directly

2. Logout log off login (people leave logout, just like windows win+l lock screen)

3.7 run level

Init 0 turn off the machine

Init 1 Single-user mode, similar to Windows the Safe Mode

Init 3 Multi-user mode

Init 5 Graphical interface mode

Init 6 Restart

                             ,         &NB Sp                          ,         &NB Sp                          ,         &NB Sp                          ,         &NB Sp                         3.22

Yzt

This article is from "Ferret" blog, declined reprint!

Linux Learning Notes

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.