Linux operating system basic structure and terminal control

Source: Internet
Author: User

Beginner Linux, write a more messy disorder, to their own study record notes, if there are errors, please Daniel advice.

basic architecture of Linux operating system
1.KERNL Kernel
2.Modules Module
3.Lib Library
4.shellTools (applications)
5.Tools Tools (applications) the same level of application
The system can be divided into 4 parts in structure:
The 1.Linux kernel, the heart of the system, is the core program for running programs and managing hardware devices, mainly including:
File Management
Device Management
Memory management
Module Management
Network management
Process Management
Generally accepts user commands that are passed from run-time libraries and system programs, and returns results to the user after execution.
2. Run-time library and system programs, they encapsulate the kernel to provide a function interface, add these functions to a certain permission to first check, through their own application interface to the general user process use.
3.Linux Shell It is a system program, but it has different functions from the general system programs that work in the background. It faces the user between.
The shell is a command interpreter that interprets the commands entered by the user and feeds them into the kernel.
The Red Hat Linux system supports several different shells:
Bourne Shell: Developed by Bell Labs
BASH: Is the GNU Bourne Again Shell, which is the default shell of the Red Hat Linux operating system (default meaning, that is, defaults)
Korn Shell: Is the development of the Bourne shell, most of the content andBourne Shell compatible
C Shell: The BSD version of Sun's shell
4. Using a tool utility program is a program that the user uses to complete a particular tool

System boot Order
Hardware
Internal KERNL (Kernel) | Module (free to add)
Nuclear                      The BIOS BIOS is at the same level as the KERNL and is booted by the BIOS when the system boots kernl
Empty 8139 (network card module) BIOS hardware embedded language, can be directly and hardware communication, do the operation
Room

Using the API (Application Interface) Lib (Library interface)
Users ↓
An empty app (application) may invoke the interface that the most basic operating system gives it, or the interface that the library gives it
Shell is one of the applications that provides a tool for people to interact with the machine

Apache Shell KDE (desktop environment)
GUI (graphical user interface)
Root:ls-l/boot/vmlinuz-2.6.32-279.el6.i686 can view version kernel
Root:uname-a can also view versions
2.6 is the version number, 32 is 2.6 of the 32nd version of the No. 279 revision, EL Representative, this is the official version of Red Hat official revision
2.4 2.5 2.6 Kernel parallel development, both in the development of perfect
even version of the kernel is a stable version of the kernel
The odd edition kernel is the experimental version of the kernel

Kernel.org Official kernel
kernel dominates the development of Linux
Module Location
Root:ls/lib/modules/2.6.32-279.el6.i686/kernel See which modules are available
root:ls/lib/modules/2.6.32-279.el6.i686/kernel/fs to see which file systems are supported

in the Windows system, the graphical interface is written in kernel, so the graphical interface runs smoothly.
In Linux, the graphical interface is no longer kernel, the graphical interface is equivalent to an app run, occupying about 120MB of memory

Root:whoami Show you log in to your account
Root:who is he shows who you are, log in on the first few ports
Root:w shows who is logged in under that port
Root:ls/dev/tty? Shows a few analog serial ports
650) this.width=650; "height=" src= "http://b179.photo.store.qq.com/psb?/v10xzhmd40psta/yiqdzru* ceuq2h97q4s4541t.8e*9m7zhmv5fwlrste!/b/dp*fsmrjagaa&ek=1&kp=1&pt=0&bo=sqe5aaaaaaafako!&su= 058018481&sce=0-12-12&rf=2-9 "width=" 433 "style=" Margin:0px;padding:0px;border-width:0px;border-style: none;vertical-align:top; "alt=" Dp*fsmrjagaa&ek=1&kp=1&pt=0&bo=sqe5aaaaa "/>
Root:ls/dev/ttys? Shows a few actual physical serial ports
650) this.width=650; "height=" "src=" http://b178.photo.store.qq.com/psb?/V10xzhMD40psTa/ vfrtlkowca.uzcq2.v5txchdvpk8loylujrijn3z2l8!/b/dij*j2qhagaa&ek=1&kp=1&pt=0&bo=gaenaaaaaaafaiu! &su=0194118465&sce=0-12-12&rf=2-9 "width=" 384 "style=" margin:0px;padding:0px;border-width:0px; border-style:none;vertical-align:top; "alt=" Dij*j2qhagaa&ek=1&kp=1&pt=0&bo=gaenaaaaa "/>
Root:echo 575129 >/DEV/PTS/1 to pts/1 port login, send 575129
650) this.width=650; "height=" 154 "src=" http://b177.photo.store.qq.com/psb?/V10xzhMD40psTa/ wtuncvuzympqawchzy4bm6ve6x*n1l6ndjdddux5j9a!/b/devyimmybgaa&ek=1&kp=1&pt=0&bo=8agaaaaaaaafaeg! &su=098166833&sce=0-12-12&rf=2-9 "width=" 496 "style=" margin:0px;padding:0px;border-width:0px; border-style:none;vertical-align:top; "alt=" Devyimmybgaa&ek=1&kp=1&pt=0&bo=8agaaaaaa "/>
650) this.width=650; "height=" http://b177.photo.store.qq.com/psb?/v10xzhmd40psta/mwck8jzr1dfwbj* "src=" fq.sceykwkkpqrkmdkkmnrtsscai!/b/dbi6hgntbgaa&ek=1&kp=1&pt=0&bo=fwebaaaaaaafac4!&su= 095344129&sce=0-12-12&rf=2-9 "width=" 279 "style=" Margin:0px;padding:0px;border-width:0px;border-style: none;vertical-align:top; "alt=" Dbi6hgntbgaa&ek=1&kp=1&pt=0&bo=fwebaaaaa "/>
Root:skill-9 Pts/2 kicked out of the PTS/2 port under the login user
650) this.width=650, "height=", "src=" http://b178.photo.store.qq.com/psb?/v10xzhmd40psta/1hmq6k7qw3cdvn7cvb.9pw* gkgbiuhkh3ua9bpirjw8!/b/dc18i2rcagaa&ek=1&kp=1&pt=0&bo=cqeeaaaaaaafadu!&su=0140309345& Sce=0-12-12&rf=2-9 "width=" 265 "style=" margin:0px;padding:0px;border-width:0px;border-style:none; vertical-align:top; "alt=" Dc18i2rcagaa&ek=1&kp=1&pt=0&bo=cqeeaaaaa "/>
650) this.width=650; "height=" 137 "src=" http://b174.photo.store.qq.com/psb?/v10xzhmd40psta/c*of6uizle6ru2i* crxq27grq81yavrxa7xa6vnqhxk!/b/dlftvwepkgaa&ek=1&kp=1&pt=0&bo=qwgjaaaaaaafaog!&su= 0234122849&sce=0-12-12&rf=2-9 "Width=" 323 "style=" Margin:0px;padding:0px;border-width:0px;border-style: none;vertical-align:top; "alt=" Dlftvwepkgaa&ek=1&kp=1&pt=0&bo=qwgjaaaaa "/>

If you don't need so many terminal connections, you can edit
Root:vi/etc/inittab
Root:startx--: 1 Start a second graphical interface

This article is from "Linux Rookie growth log" blog, please be sure to keep this source http://0575129.blog.51cto.com/1418401/1590116

Linux operating system basic structure and terminal control

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.