Common network Management commands for "Linux"

Source: Internet
Author: User

Last: View current and past user login information

[[email protected] ~]# lastroot pts/0 192.168.1.106 Fri June 09:53 still logged in admin tty1               : 0   Fri June 09:47 still logged in root tty5 Fri June 09:31 still logged in reboot  System boot 2.6.32-431.el6.x Fri June 17:35-09:56 ( -7:-38) root tty5 Fri June 3 07:31                          -Down (00:34) reboot system boot 2.6.32-431.el6.x Fri June 3 07:27-08:06 (00:39) root tty5               Fri June 3 07:21-down (00:04) Admin tty1:0     Fri June 3 07:21-down (00:05) reboot system boot 2.6.32-431.el6.x Fri June 3 07:09-07:26 (00:16) root               Tty5 Fri June 3 07:01-down (00:07) Admin tty1:0     Fri June 3 06:57-down (00:10) reboot system boot 2.6.32-431.el6.x Fri June 3 06:57-07:08 (00:11) root Tty5 Fri June 3 06:28-Down (00:27) admin tty1:0    Fri June 3 06:28-down (00:27)

 lastlog: Show only user last logon information

[[email protected] ~]# lastlog Username Port from Latestroot pts/0 192.168.1.1                                     Fri June 09:53:00 +0800 2016bin **never logged In**daemon                                         **never logged in**adm **never logged IN**LP                                   **never logged In**sync **never logged In**shutdown                                       **never logged In**halt **never logged In**mail                                   **never logged IN**UUCP **never logged In**operator                                     **never logged in**games **never logged In**gopher                              **never logged in**ftp **never logged In**nobody       **never logged In**dbus **never logged In**rpc                                       **never logged in**oprofile **never logged IN**VCSA                                       **never logged In**rtkit **never logged IN**ABRT                                     **never logged IN**AVAHI-AUTOIPD **never logged in**hsqldb                                    **never logged In**saslauth **never logged In**rpcuser                                    **never logged in**nfsnobody **never logged In**postfix                                  **never logged In**ricci **never logged In**haldaemon                                        **never logged IN**GDM **never logged IN**NTP **never logged In**apache **never logged In**amandabackup                                     **never logged in**pulse **never logged In**tomcat                                       **never logged in**sshd **never logged In**luci                                    **never logged in**mysql **never logged In**dovecot                                    **never logged in**dovenull **never logged In**tcpdump **never logged in**admin tty6 Fri May 27 06:10:56 +0800 2016

 traceroute: View network path

[[email protected] ~]# traceroute www.163.comtraceroute to Www.163.com (42.81.28.74), hops max, byte packets 1 192.168.1.1 (192.168.1.1) 0.236 ms 0.197 ms 0.454 MS 2 10.8.0.1 (10.8.0.1) 4.405 ms 4.396 ms 4.382 ms 3 172.16.3. 173 (172.16.3.173) 2.765 ms 2.750 ms 2.632 MS 4 172.16.33.1 (172.16.33.1) 2.947 ms 3.503 ms 3.492 MS 5 10.1.1.1 (1 0.1.1.1) 3.485 Ms 3.460 MS 3.453 MS 6 * * * 7 * * * 8 123.151.29.73 (123.151.29.73) 7.249 Ms 219.150.51.105 (219.15 0.51.105) 4.883 Ms 123.151.29.73 (123.151.29.73) 7.226 Ms 9 221.238.222.101 (221.238.222.101) 2.943 Ms 219.150.38.141 (219.150.38.141) 3.252 Ms 219.150.38.229 (219.150.38.229) 4.826 ms10 42.81.32.22 (42.81.32.22) 4.197 Ms 4.122 MS 4.1 MS11 42.81.1.54 (42.81.1.54) 7.702 Ms 42.81.1.6 (42.81.1.6) 209.992 Ms *12 42.81.0.166 (42.81.0.166) 9.554 Ms 42.8 1.0.194 (42.81.0.194) 8.810 Ms 42.81.0.190 (42.81.0.190) 8.765 ms13 42.81.28.74 (42.81.28.74) 4.167 ms 4.650 MS 3.41 3 ms

Netstat: viewing network conditions

Parameters:-t:tcp Protocol

-U:UDP protocol

-l:listen Monitoring

-R: Routing

-N: Display IP and port number

Common usage: Netstat-tlun # #显示本机监听的端口

Netstat-an # #显示本机所有网络连接

NETSTAT-RN # #显示本机路由信息

Setup: Access to the managed graphical interface

 

 

Common network Management commands for "Linux"

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.