资源描述:
《[bash.Cookbook(2007)].Carl.Albing.文字版》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、bashCookbook™CarlAlbing,JPVossen,andCameronNewhamBeijing•Cambridge•Farnham•Köln•Paris•Sebastopol•Taipei•TokyobashCookbook™byCarlAlbing,JPVossen,andCameronNewhamCopyright©2007O’ReillyMedia,Inc.Allrightsreserved.PrintedintheUnitedStatesofAmerica.PublishedbyO’ReillyMedia,Inc.,1005GravensteinHighway
2、North,Sebastopol,CA95472.O’Reillybooksmaybepurchasedforeducational,business,orsalespromotionaluse.Onlineeditionsarealsoavailableformosttitles(safari.oreilly.com).Formoreinformation,contactourcorporate/institutionalsalesdepartment:(800)998-9938orcorporate@oreilly.com.Editor:MikeLoukidesCoverDesig
3、ner:KarenMontgomeryProductionEditor:LaurelR.T.RumaInteriorDesigner:DavidFutatoCopyeditor:DerekDiMatteoIllustrators:RobertRomanoandJessamynReadProductionServices:TolmanCreekDesignPrintingHistory:May2007:FirstEdition.NutshellHandbook,theNutshellHandbooklogo,andtheO’Reillylogoareregisteredtrademark
4、sofO’ReillyMedia,Inc.bashCookbook,theimageofawoodturtle,andrelatedtradedressaretrademarksofO’ReillyMedia,Inc.Manyofthedesignationsusedbymanufacturersandsellerstodistinguishtheirproductsareclaimedastrademarks.Wherethosedesignationsappearinthisbook,andO’ReillyMedia,Inc.wasawareofatrademarkclaim,th
5、edesignationshavebeenprintedincapsorinitialcaps.Whileeveryprecautionhasbeentakeninthepreparationofthisbook,thepublisherandauthorsassumenoresponsibilityforerrorsoromissions,orfordamagesresultingfromtheuseoftheinformationcontainedherein.ThisbookusesRepKover™,adurableandflexiblelay-flatbinding.ISBN
6、10:0-596-52678-4ISNB13:978-0-596-52678-8[M]TableofContentsPreface................................................................xiii1.Beginningbash....................................................11.1DecodingthePrompt41.2ShowingWhereYouAre51.3FindingandRunningCommands61.4GettingInformationAb
7、outFiles81.5ShowingAllHidden(dot)FilesintheCurrentDirectory101.6UsingShellQuoting121.7UsingorReplacingBuilt-insandExternalCommands131.8DeterminingIfYouAreRunningInteractively151.9SettingbashAsYourDefaultShell161.10Gettingbas