欢迎来到三一办公! | 帮助中心 三一办公31ppt.com(应用文档模板下载平台)
三一办公
全部分类
  • 办公文档>
  • PPT模板>
  • 建筑/施工/环境>
  • 毕业设计>
  • 工程图纸>
  • 教育教学>
  • 素材源码>
  • 生活休闲>
  • 临时分类>
  • ImageVerifierCode 换一换
    首页 三一办公 > 资源分类 > PPT文档下载  

    《aix系统应用基础》.ppt

    • 资源ID:5896017       资源大小:314KB        全文页数:17页
    • 资源格式: PPT        下载积分:15金币
    快捷下载 游客一键下载
    会员登录下载
    三方登录下载: 微信开放平台登录 QQ登录  
    下载资源需要15金币
    邮箱/手机:
    温馨提示:
    用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)
    支付方式: 支付宝    微信支付   
    验证码:   换一换

    加入VIP免费专享
     
    账号:
    密码:
    验证码:   换一换
      忘记密码?
        
    友情提示
    2、PDF文件下载后,可能会被浏览器默认打开,此种情况可以点击浏览器菜单,保存网页到桌面,就可以正常下载了。
    3、本站不支持迅雷下载,请使用电脑自带的IE浏览器,或者360浏览器、谷歌浏览器下载即可。
    4、本站资源下载后的文档和图纸-无水印,预览文档经过压缩,下载后原文更清晰。
    5、试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓。

    《aix系统应用基础》.ppt

    Copyright IBM Corporation 2008,Unit 10Processes,Copyright IBM Corporation 2008,Unit Objectives,After completing this unit,you should be able to:Define an AIX processDescribe the relationship between parent and child processesCreate and invoke shell scripts,Copyright IBM Corporation 2008,The Process Environment,ProgramUser and group IDData Process ID(PID)Open filesParent Process ID(PPID)Current directoryProgram variables,What Is a Process?,Each program runs in a process:The variable$shows the process ID of the current shell:$echo$4712The ps command shows the running processes:$ps-u team01,Copyright IBM Corporation 2008,login:,AIX System,PID=202-ksh,login:johnJohns Password:xxxxxx$_,Environment,program/usr/bin/kshuidjohngidstafffiles/dev/tty1PID202,Login Process Environment,Copyright IBM Corporation 2008,AIX System,$cat kfile,Environment during execution,program/usr/bin/catuidjohngidstafffiles/dev/tty1 kfileparent-kshPID310PPID202,PID=202-ksh,PID=310 cat,Process Environment,Copyright IBM Corporation 2008,$echo$202$ksh(Create a subshell)$echo$206$date(Run a command)Tue Jan 4 11:18:26 GMT 2000$(Exit the subshell)$echo$202,Subshell,PID PPID-ksh 202 1 ksh 206 202 date 208 206,Parents and Children,Copyright IBM Corporation 2008,$x=4$ksh$echo$x$x=1$echo$x4,Subshell,Variables and Processes,Variables are part of the process environment.Processes cannot access or change variables from another process.,Copyright IBM Corporation 2008,variable,Shell,Subshell,export variable=value,Activity:Exporting Variables,Copyright IBM Corporation 2008,A shell script is a collection of commands stored in a text file,$vi hello echo Hello,John.Today is:$(date)pwd ls:wq$,What Is a Shell Script?,Copyright IBM Corporation 2008,$cat helloecho Hello,John.Today is:$(date)(1)pwd(2)ls(3)$ksh helloHello,John:Today is:Wed Sep 13 19:34(1)/home/john(2)books letter1 text2sarah(3)$_,-ksh,$ksh hello,ksh,script commands,Subshell,Invoking Shell Scripts(1 of 3),Copyright IBM Corporation 2008,The shell uses the PATH variable to find executable programs.,$cat helloecho Hello,John.Today is:$(date)(1)pwd(2)ls(3)$chmod+x hello$helloHello,John:Today is:Wed Sep 13 19:34(1)/home/john(2)books letter1 text2sarah(3)$_,Subshell,Invoking Shell Scripts(2 of 3),Copyright IBM Corporation 2008,$cat set_dirdir1=/tmp dir2=/usr$.set_dir$echo$dir1/tmp$echo$dir2/usr,.(dot):Execution in the current shell,?,What is the value of dir1 and dir2,if set_dir is called without the dot?,Invoking Shell Scripts(3 of 3),Copyright IBM Corporation 2008,Exit Codes from Commands,A command returns an exit value to the parent process:0=Success 1-255=Other than successfulThe environment variable$?contains the exit value of the last command:$cd/etc/securityksh:/etc/security:Permission denied$echo$?1,Copyright IBM Corporation 2008,Checkpoint,When would you execute a shell script using the dot(.)notation?Why?What is the command that is used to carry down the value of a variable into the subshell?What would be the value of x at the end of the following steps?$(.login shell.)$ksh$x=50$export x$(what is the value of x set to now?),Copyright IBM Corporation 2008,Checkpoint Solutions,When would you execute a shell script using the dot(.)notation?Why?When you are using the script to change variable values in the current shell.What is the command that is used to carry down the value of a variable into the subshell?export variable_nameWhat would be the value of x at the end of the following steps?$(.login shell.)$ksh$x=50$export x$(what is the value of x set to now?)x would have the value it had before starting the subshell.If the login shell had not set the variable,then after return from the subshell it would still not be set.,Copyright IBM Corporation 2008,ShellScripts,Activity:Shell Scripts,Copyright IBM Corporation 2008,Unit Summary,Shell scripts can be invoked in three ways:$ksh scriptname(must have read permission)$scriptname(must have read and execute permission)$.scriptname(must have read permission)Each program runs in an AIX process.Every process has an environment in which it runs much of which is inherited from its initiating process,the parent process.,

    注意事项

    本文(《aix系统应用基础》.ppt)为本站会员(小飞机)主动上传,三一办公仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知三一办公(点击联系客服),我们立即给予删除!

    温馨提示:如果因为网速或其他原因下载失败请重新下载,重复下载不扣分。




    备案号:宁ICP备20000045号-2

    经营许可证:宁B2-20210002

    宁公网安备 64010402000987号

    三一办公
    收起
    展开