如果您无法下载资料,请参考说明:
1、部分资料下载需要金币,请确保您的账户上有足够的金币
2、已购买过的文档,再次下载不重复扣费
3、资料包下载后请先用软件解压,在使用对应软件打开
北京邮电大学毕业设计PAGE\*MERGEFORMATiShell设计与实现摘要Shell的开发与使用是linux操作系统日渐普及的产物。而对于微型linuxshell的研究是linux研究的重点。利用微型的shell,不仅可以让用户更容易操作linux,也可以帮助用户理解linux工作原理,同时保护内核的安全性。本文对shell的研究包括对其功能的了解,并实现对shell的列表、管道、输入重定向、输出重定向等命令功能,可以比较全面地认识shell解释器,编写出可以实现的各种功能的具体代码,这样来编写一个简易的linuxshell解释器。在本文中所编写的shell是专门用于嵌入式设备的,在此类设备中,往往存储量小,功耗较低,但是对要求很苛刻,所以有一定的难度。本文的主要内容现先是介绍了一下shell的发展历史、特点和应用前景,紧接着解释shell与嵌入式的关系,大致了解一下linux与安卓在嵌入式开发中的地位。还罗列了shell的开发技术与unix系统编程。最终详细设计了shell的工作原理,并且附上了相关源代码,使得读者有一个大致了解。本系统全程采用C语言与unix系统高级编程开发,由本人独立完成。本系统对嵌入式开发人员操作linux系统内核与文件系统有较大帮助。关键词:Shell;程序;设计与实现;嵌入式PAGE\*MERGEFORMATiiDesignanddevelopmentoflinuxshellsystemAbstractAccompaniedbythepopularizeofthelinux,moreandmorepeoplearedoingdeeplystudyinit.Thestudyoftheshellinlinuxisthemostimportantthingwhenstudythelinux.Andhowtostudy?Itmainlyincludestheunderstandofsomeknowledgeandfunctionofthemicrolinuxshell.Throughthestudyoftheordersinshelllikelist,pipe,inputredirectandoutputredirect,readerscanhaveathoroughsenseabouttheshellandlearntousetheseordersaccuratelyinshellwhichplayanimportantroleinprogramminglater.Codeaccuratelyandachieveasimpleshellwiththefunctionsaboveafteranalyzingthedetailsofeveryfunctionsmodule.Moreover,intheembeddedfield,thehardwareresourcesarelimited,butdemandisunlimited.Thismeanstheyhavetouselimitedresourcestoaccomplishavarietyofneeds,andembeddeddesignandprogramminginthetraditionalPC,isverydifferent,anditoftenrequiresonlyasmallpartofalargeprogramonmeetitsneeds,sowehadtocutoutanumberofuselessprogramsinexchangeforspace.Intheembeddedfield,asthetraditionalKshell,Cshell,BourneShellandotherlarge-scaleshellprogramwillmakeourhardwareresourcesarestretched.Soweneedamoresuitableforembeddedsystemsusedintheshell,thisismyanotherobjectiveofthisdesign.Keywords:Shell;Process;Designandachieve;embedded目录TOC\o"1-3"\h\z\uHYPERLINK\l"_Toc4929"摘要PAGEREF_Toc4929iHYPERLINK\l"_Toc29835"AbstractPAGEREF_Toc29835iiHYPERLINK\l"_Toc12811"前言PAGEREF_Toc128111HYPERLINK\l"_Toc4447"1绪论