Linux Basic Command Job four

Source: Internet
Author: User

Linux Basic Command four

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,

Divide 1 logical partitions on extended partitions, 5G in size

4) format primary partition as EXT3 system

5) Set logical partition to swap partition

6) enable the Swap partition for the previous step

7) View the status of the swap partition

Job Two: Free command to view memory

Organizing the role of buffer and cache

Calculate Real Memory utilization

collation of buffer and cache:
    • First, buffer and cache are both caches.

    • In the literal sense, buffer is buffered. The user in the memory of the data in the process of storage to the hard disk, is in the form of a block transmission, but each transmission of the process, there will be a certain delay, although very small, but the data is very large, the stack up the delay is very large. Therefore, the function of buffer is to reduce the amount of data that needs to be transferred in a certain size package together to transport, reducing the delay time.

    • Cache, caching, is actually the reuse of data, like the CPU cache. Users use the process is to access a variety of data data, some of which is a high rate of reuse, in order to improve efficiency, so that some of the high reusability of data in the cache, so that access to the data will not need to delay each time to improve efficiency.

Calculate real Memory Utilization
    • (502656-283440)/999936=0.21923 .... (Real memory utilization)

Job Three: DD command to test hard drive speed

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

Job Five: RPM command

1) Mount the disc file to the/media directory

2) Enter the packages directory under the/media directory

3) View all RPM packages installed on the system

4) Check to see if the system is installing DHCP packages

5) Install the DHCP package

6) View information for DHCP packages

7) View all files included in the DHCP package

8) See which package generated the/bin/ls file

9) Uninstalling the DHCP package

Job Six: Yum command

1) Customizing the Yum repository: Createrepo

2) Customizing the repo file

3) Install the HTTPD package using the Yum command

4) Uninstalling the HTTPD package: yum–y Remove software name

5) Install the component ' KDE desktop ' using yum: Yum–y Groupinstall Component name PS: The file is too big, the internet is too poor, not loaded.

6) Master using Yum to remove components ' KDE Desktop ': Yum–y groupremove Component Name

7) Master purge Yum cache: Yum Clean all

8) Use Yum to find packages: Yum Search package Name

Job Seven: source code installation Python

Linux Basic Command Job four

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.