欢迎来到天天文库
浏览记录
ID:13545215
大小:746.60 KB
页数:45页
时间:2018-07-23
《学位论文-—2015年shell设计与实现.doc》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、武汉理工大学Shell设计与实现摘要Shell的开发与使用是linux操作系统日渐普及的产物。而对于微型linuxshell的研究是linux研究的重点。利用微型的shell,不仅可以让用户更容易操作linux,也可以帮助用户理解linux工作原理,同时保护内核的安全性。本文对shell的研究包括对其功能的了解,并实现对shell的列表、管道、输入重定向、输出重定向等命令功能,可以比较全面地认识shell解释器,编写出可以实现的各种功能的具体代码,这样来编写一个简易的linuxshell解释器。在本文
2、中所编写的shell是专门用于嵌入式设备的,在此类设备中,往往存储量小,功耗较低,但是对要求很苛刻,所以有一定的难度。本文的主要内容现先是介绍了一下shell的发展历史、特点和应用前景,紧接着解释shell与嵌入式的关系,大致了解一下linux与安卓在嵌入式开发中的地位。还罗列了shell的开发技术与unix系统编程。最终详细设计了shell的工作原理,并且附上了相关源代码,使得读者有一个大致了解。本系统全程采用C语言与unix系统高级编程开发,由本人独立完成。本系统对嵌入式开发人员操作linux系统
3、内核与文件系统有较大帮助。关键词:Shell;程序;设计与实现;嵌入式武汉理工大学武汉理工大学DesignanddevelopmentoflinuxshellsystemAbstractAccompaniedbythepopularizeofthelinux,moreandmorepeoplearedoingdeeplystudyinit.Thestudyoftheshellinlinuxisthemostimportantthingwhenstudythelinux.Andhowtostudy?It
4、mainlyincludestheunderstandofsomeknowledgeandfunctionofthemicrolinuxshell.Throughthestudyoftheordersinshelllikelist,pipe,inputredirectandoutputredirect,readerscanhaveathoroughsenseabouttheshellandlearntousetheseordersaccuratelyinshellwhichplayanimportan
5、troleinprogramminglater.Codeaccuratelyandachieve asimpleshellwiththefunctionsaboveafteranalyzingthedetailsofeveryfunctionsmodule.Moreover,intheembeddedfield,thehardwareresourcesarelimited,butdemandisunlimited.Thismeanstheyhavetouselimitedresourcestoacco
6、mplishavarietyofneeds,andembeddeddesignandprogramminginthetraditionalPC,isverydifferent,anditoftenrequiresonlyasmallpartofalargeprogramonmeetitsneeds,sowehadtocutoutanumberofuselessprogramsinexchangeforspace.Intheembeddedfield,asthetraditionalKshell,Csh
7、ell,BourneShellandotherlarge-scaleshellprogramwillmakeourhardwareresourcesarestretched.Soweneedamoresuitableforembeddedsystemsusedintheshell,thisismyanotherobjectiveofthisdesign.Keywords:Shell;Process;Designandachieve;embedded武汉理工大学武汉理工大学目录摘要iAbstractii
8、前 言11绪论21.1Shell的使用21.2嵌入式linux21.3嵌入式linux应用特点31.4发展前景42LinuxShell与嵌入式简介52.1shell的定义52.1.1UNIXShell62.1.2LinuxShell62.2shell的历史72.3shell的作用72.4shell的职责82.5嵌入式简介82.6安卓与linux103LinuxShell的设计及相关技术133.1简单shell设计思想133.2复杂shell设计思想133
此文档下载收益归作者所有