Linu操作系统简介 周炯 上海艾基信息技术有限公司1Acegene IT Co. Ltd.内容提要 • Linu简介 • Linu的安装 • SHELL及常用程序 • 文件编辑器vi • 目录和文件管理 • 文件系统管理 • 用户管理• 网络管理 • 网络文件系统 • 模块安装和配置 • 系统管理 • 系统优化 • 开发工具 • Internet管理 2Acegene IT Co. Ltd.Linu——简介 • Linu操作系统是可以运行在许多不同类型的计 算机上的一种操作系统的“内核”它是提供命令 行或者程序与计算机硬件之间接口的软件的核心 部分Linu操作系统内核管理以下事情:比如 内存、采用什么方法以及在什么时候打开或者关 闭文件、哪一个进程或者程序可以获得计算机的 中央处理单元(CPU)等等 • Linu操作系统可以说是UNI操作系统的一个克 隆体,它最初是在1991年10月5日由它的作者 Linus Torvalds于赫尔辛基大学发布的3Acegene IT Co. Ltd.Linu功能• 所有主要的网络协议 • 硬盘配额支持 • 全部的源代码 • 国际化的字体和键盘 • 作业控制 • 数学协处理器仿真 • 内存保护 • 多平台• 多处理器 • 多用户 • 多任务 • 共享的库文件 • 支持多种文件系统 • 虚拟控制台 • 虚拟内存 • 其他更多功能4Acegene IT Co. Ltd.GPL和Free • Linu操作系统遵从GNU公共许可证( GNU Public License,简称GPL)的规定 。
• Linu对外的一个重要的特点就是”Free”, 自由和免费5Acegene IT Co. Ltd.What is Linu? • Linu is an operating system with the following attributes: –Multi-user –Multi-tasking –Virtual memory system –-Windows –Compatible with the IEEE POSI.1 standard –Non-proprietary source code –Source code is available6Acegene IT Co. Ltd.Is Linu the same as UNI? • The command set is similar • They work the same • They look the same • Linu cannot use the UNI trademark • Linu is essentially UNI7Acegene IT Co. Ltd.Is Linu a real OS? • Yes, absolutely • Linu is used –In mission critical applications –Around the world • There are many flavors of Linu available –We call them: Distributions8Acegene IT Co. Ltd.Linu发行版本的概念• 大多数的Linu操作系统的发行版本都使用标准 的Linu内核,但有时候也会稍微加以修改,这 个操作系统现在的规模已经变得相当庞大了,因 此许多人更愿意购买一张它的CD-ROM光盘。
每 一种发行版本彼此之间都稍微有一些差异,这些 差异主要表现在它们各自的安装程序包上,还表 现在安全性与可用性等方面侧重点的不同把系 统内核、附带的工具程序及应用软件包等等打包 在一起,这样组成的一个Linu操作系统的集合 体就是我们说的某一种发行版本9Acegene IT Co. Ltd.谁使用Linu操作系统 • Linu正在逐渐赢得普通用户的青睐但是它仍 然不是一个适用于普通大众的操作系统对那些 习惯了当今鼠标界面操作系统的人们来说, 学习 仍是很困难的需要学习一大套从未接触过的命 令,还需要学习与长期形成的概念不相同的那些 对待与处理事情的方法对那些具有UNI操作系 统使用经验的人们来说,Linu可是容易多了 • 专业用户、系统管理员和计算机开发人员通常都 会比一般的用户更容易掌握Linu操作系统但 就是对这些人来说,这方面的学习与实践也需要 有足够的耐心与专心10Acegene IT Co. Ltd.Enterprise vs. Retail • Retail distributions –Faster release cycles (4-6 months) –Geared for home/productivity users –Shorter support lifetimes –Eamples: RHL9, SuSE Linu 9 • Enterprise level distributions –Slower release cycles (12-18 months) –Longer support lifetimes (3-5 years) –Eamples: RHEL3/4, SLES9 –Adds performance and scalability enhancements11Acegene IT Co. Ltd.Linu Distribution Overview • The core parts of a Linu system are: –Linu kernel –User space utilities and applications • The kernel and user space programs together make up the complete operating systemLinu Kernel • Core component of the operating system –Configurable and tunable –Provides main OS functions • I/O, disk, network, etc. • CPU Scheduling • Memory management • uname -r shows the kernel version number:# uname -r 2.4.9-e.25Kernel concepts • Linu is based on a modular non- microkernel architecture –All device drivers share the same memory with the kernel –Device drivers are modular and can be loaded/unloaded dynamically • Linu is multi-tasking • Linu is a virtual-memory OS • Most kernel parameters can be modified on the fly14Acegene IT Co. Ltd.• All components of the operating system are delivered via RPM packages –Kernel –System utilities –Applications • Both Red Hat and SLES8 distributions use the RPM Package Manager (RPM) –Originally named “Red Hat Package Manager”Software PackagesLinu Updates • Apply the recommended updates by the distribution vendor: –Most vendors provide automatic updates • Red Hat Network supplies updates automatically – up2date • SuSE uses – YaST2 (Yet Another Setup Tool 2) – you (YaST Online Update)Linu Enterprise Features • Linu enterprise features support : –Performance –Scalability –ReliabilitySymmetric Multiprocessing • Fully multiprocessor capable (SMP) –RHEL3: 16 processors –SLES8: 32 processors –Uniprocessor configuration supported on both • Intel Hyperthreading (HT) enabled on IA-32 –Physical-to-logical CPU affinity scheduling18Acegene IT Co. Ltd.Improved Memory Utilization • Use more than 4GB of RAM on IA-32 – RHEL 2.1: ma 16GB supported – RHEL3: ma 64GB supported – SLES8: up to 64GB supported – Some older drivers not capable of accessing more than 4GB of RAM • May perform “bounce buffering” to compensate • Usually not a concern for enterprise-class drivers • Kernel memory used more efficiently than before • Run more processes without swapping19Acegene IT Co. Ltd.Virtual Memory• Each process has a private address space – Keeps private data in memory secure – Prevents inter-process data corruption – Contiguous view of memory • Demand-based paging – Pages are “swapped” out when low on RAM – Pages are “swapped” in when accessed again • Allows the system to use more memory than any single space can address20Acegene IT Co. Ltd.Virtual Filesystem (VFS) • Linu supports multiple file systems –OS is file system independent –Multiple file systems can be used simultaneously • Cross-platform compatibility • Performance • VFS provides a single filesystem interfaceFilesystems• Important ones to k。