Utility Linux Commands

Source: Internet
Author: User

lsof-i:6379

See if a program on a port is up.

Netstat-tnlp

You can view the listening ports, where L is listening, p is display program, n is the display IP instead of name, and T appears to be viewing only the contents of TCP.

View memory usage or CPU usage every 5 seconds:

$ vmstat 5-----------memory-------------Swap-------io------System------CPU---- R  B   swpd   Free   buff  cache   si   so    bi   bo    in 3  0      0 123047944 337712 6273224    0    0     0     1    0     0  0  0  0 0  0      0 123085800 337712 6273252    0    0     0    41991  6856  0  1  0^ 52.6.32_1-18-0-0 ( gzns-ecom-baiduhui-201605-m42n04.gzns.baidu.com)         10/09/2016      _x86_64_        ( CPU)12:03:14 AM  CPU    %usr   %nice    %sys%iowait    %irq   %soft  %steal  %guest   Idle 12:03:19 AM  all    0.03    0.04    0.09    0.03    0.00    0.00    0.00    0.00   99.8212:03:24 AM  all    0.04    0.10    0.33    0.04    0.00    0.00    0.00    0.00   99.50

Utility Linux Commands

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.