Kyle's Linux notes

Source: Internet
Author: User
Kyle's Linux notes-general Linux technology-Linux technology and application information. The following is a detailed description. I. GNU Project: recursive abbreviation of GUU's Not Unix, which attempts to create a completely free operating system (Open Source pioneer ).

Ii. Grub: The Boot Loader is mainly responsible for loading the kernel and guiding the Linux system and other OS.
His features are: ① supports the LBA mode of the hard disk; ② supports 1024*768 boot screen.
LBA (Logical Block Addressing) logic Block Addressing mode. The disk space for management can reach 8.4 GB. In LBA mode, the cylindrical, Head, and sector parameters are not physical parameters of the actual hard disk. When accessing a hard disk, the IDE controller converts the logical address determined by parameters such as the cylinder, Head, and sector to the physical address of the actual hard disk. In LBA mode, the maximum number of magnetic heads can be set to 255, and other parameters are the same as in normal mode. Therefore, the accessible hard disk capacity can be calculated as follows: 512x63x255x1025 = 8.4 GB. However, the BIOS of the new motherboard is now extended to INT13, enabling LBA to support hard disks larger than 100 GB.
LARGE hard drive mode is used when the hard drive cylinder exceeds 1024 and is not supported by LBA. In LARGE mode, the number of cylinders is divided by 2, and the number of magnetic heads is multiplied by 2. The total size of the result remains unchanged.
Experiment: # cd/boot
# Cd grub
# Ls-l menu. lst
# Vi menu. lst
Timeout: indicates the default wait time. After this time, the system enters the default OS.
Default: Specifies the default OS to be started. = 0 indicates the first OS.
Splashimage: the default position for storing the boot screen. It is in xpm format.
Title: indicates the "Redhat" menu item
Root (hd1.0): The second hard disk, the first partition. Its representation is different from that of Linux. In Linux, root refers to the primary Linux partition, but grub has its own root partition definition. The root partition of grub is stored in the Linux Kernel partition. For example, in Linux, the fifth partition of the first hard disk is hda5, and grub is (hd0, 4)
Kernel: kernel version
Ro: read only
Initrd: used to initialize a Linux image and set relevant parameters.

Iii. Network Configuration:
① Network configuration script experiment:
# Cd/etc/sysconfig/network-scripts
# Ifcfg-eth0 more
# Vi ifcfg-eth0
ONBOOT indicates whether the instance is activated.
② Parser configuration experiment:
# More/etc/resolv. conf
# Vi/etc/resolv. conf
③ Host configuration experiment:
# More/etc/hosts
# Vi/etc/hosts
④ Manually configure the TCP/IP network using the command line:
# Ifconfig-a -- list all network devices and information
# Route add default gw 208.164.186.1 -- add a default gateway
# Netstat-t -- list all TCP connections
# Netstat-vat -- list all activities and monitored connections
⑤ Network service data file: records service files of different network OS. Each record in this file represents an internet service.
Experiment: # more/etc/services
# Vi/etc/services
PS: the port range is 0 ~ 65535. 0 ~ 1023 dedicated for servers, called "well-known ports"; the rest can be used by individuals without conflict.

4. Edit the kernel:
① Kernel: the core of an OS. It is responsible for managing system processes, memory, device drivers, files, and network systems. It determines system performance and stability.
② Open source code of the kernel, which can be found in/usr/src/linux.
③ You can compile only the kernel files you need: the customized and compiled modules run faster (with the least Code ); the system will have more memory (the kernel will not be switched to the swap partition); compiling unnecessary functions into the kernel may increase the risk of attacks; compiling a function into a module is slower than compiling it into the kernel.
④ Kernel compilation mode: to support certain functions, You can compile the corresponding part into the kernel (build-in) or compile it into a module for dynamic calling. If compiled to the kernel, the corresponding functions can be automatically supported when the kernel is started. It is convenient and fast, and can be used when the machine starts. The disadvantage is that the kernel will become larger and larger. Therefore, we recommend that you compile common functions into the kernel.

Note: after reading the video from Mr Chu Guangming, I have mastered most of the content except "Disk Quota". On this basis, I will improve my skills and enrich myself. Thank you for bringing me into the wonderful Linux World, thank you for Linux, and thank you for the open source.

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.