Linux Basic series: Common Commands (4) _ System monitoring

Source: Internet
Author: User
Tags pkill

Job One:

1) Add a 15G SCSI hard disk before opening the Linux system

2) Turn on the system, right click on the desktop, open the terminal

3) for the newly added hard disk partition, a primary partition size of 5G, the remaining space to the extended partition, on the extended partition divided 1 logical partitions, the size of 5G

To set the primary partition:

To set an extended partition:

To set the extension partition logical partition:

To view partition results:

    

4) format primary partition as EXT3 system

Command: MKFS.EXT3/DEV/SDB1

5) Set logical partition to swap partition

Command: MKSWAP/DEV/SDB5

6) enable the Swap partition for the previous step

Command: SWAPON/DEV/SDB5

7) View the status of the swap partition

Command: Swapon–s

Job Two: Free command to view memory

Organizing the role of buffer and cache

Calculate Real Memory utilization

Job Three: DD command to test hard drive speed

Command: DD If=/dev/zero of=/a.txt BS=200MB count=1

Job Four: Find a process named SSH and force it to kill

Command: pgrep ssh #查找ssh相关进程

Kill Process:

[Email protected] mnt]# pkill-9 1201

[Email protected] mnt]# pkill-9 2846

Linux Basic series: Common Commands (4) _ System monitoring

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.