Linux Introductory Learning (ix)

Source: Internet
Author: User

Lesson 21:linux System Start-up detailed

    1. Bios->mbr:boot code-> Execute bootloader-grub-> load kernel--Execute Init->runlevel
    2. BIOS (Basic Input Output System), generally saved in the motherboard of the BIOS chip, the computer starts, the first run, the BIOS is responsible for checking and find the bootable settings, bootable device in the BIOS settings, such as Usb,cdrom,hd
    3. Mbr,bios after locating the bootable device and executing its boot code, the boot code is the first 446 bytes of the MBR
    4. Grub, now used by Linux mainstream boot program, can almost boot all operating systems, grub configuration file in the/boot/grub/directory, stage1 size of 512 bytes, the actual MBR image.
    5. KERNEL,MBR's boot code will be responsible for locating and loading the Linux kernel, and the Linux kernel is saved in/boot/vmlinuz-2.6.32-279.el6.i686. Command DMESG to view the output of the kernel at this boot
    6. Init,init is the first process running in a Linux system, calling/etc/rc.d/ Rc.sysinit is responsible for initializing the system, mounting the file system, and starting the corresponding service according to the RunLevel, Linux runlevel, 0-shutdown, 1-single-user mode, 2-multiuser mode without network, 3-multiuser mode, 4-unused, 5-xii graphical mode; 6-restart
    7. The default operating level can be configured by/etc/inittab, and other basic in the/etc/init/directory, including Ctrl+alt+del. Command init+ number, you can toggle the current run level, runlevel, you can view the previous and current RunLevel
    8. Single-User change root password, pass parameter 1 or single for the kernel, no task service is started by user mode, log in directly with root user, and do not need secret. Temporarily grub on startup, passing parameter 1 to the kernel to enter single-user mode. PASSWD, you can change the password without the need for an old password.
    9. Grub encryption encrypts grub by adding the following parameters to the boot configuration in/boot/grub/grub.conf: Password--md5 MD5 string. Grub-md5-crypt, you can md5 a cipher string.

?

Lesson 22:linux Software Management

    1. Source code form, the vast majority of open source software is directly published in the form of source code, will generally be packaged into tar.gz archive compressed files, the source code basic compilation process: 1-./configure: Check the compilation environment, related library files, and configuration parameters and generate makefile;2- Make: Compile the source code to generate the executable file; 3-make install installs the resulting executable file to the current computer
    2. RPM (Redhat Package Manager) simplifies the installation management of open source software by compiling source code into executables based on a specific platform system and saving dependencies. RPM Design Catalog: Use simple, single package format file publishing (. rmp file), upgradeable, tracking software dependencies, basic information queries, software validation features, payment multiplatform.
    3. RPM Basic command: Install software: rpm-i software.rpm; Uninstall software: Rpm–e software.rpm; Upgrade: Rpm–u software.rpm; Install via HTTP,FTP protocol: RPM–IVH http://xxx/ xxx/xxx.rpm
    4. RPM Query

    5. RPM Verification

?

Lesson 23:yum

    1. YUM (Yellowdog Updater Modified) is a RPM front-end program designed to automatically solve RPM-dependent rpm dependency issues. Features: Automatically resolve dependencies, can group RPM, and group-based installation, the introduction of warehouse concepts, support multiple warehouses, simple configuration
    2. The repository configuration file is saved in the/etc/yum.repos.d/directory in the following format:

    3. Yum Basic command: Yum install xxx;yum remove xxx;yum update xxx
    4. Yum query: Yum search Keyword;yum list (all|installed|recent|updates); Yum info packagename;yum whatprovides filename Which package does the query file belong to?
    5. Create a Yum repository

    6. Yum cache: After the configuration of the Yum repository is modified, the cache can be cleaned up by Yum clean.

Linux Introductory Learning (ix)

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.