码迷,mamicode.com
首页 > 系统相关 > 详细

shell的父子进程

时间:2018-08-23 02:24:38      阅读:211      评论:0      收藏:0      [点我收藏+]

标签:col   3.3   技术分享   shel   line   www   alt   inf   技术   

2017年1月11日, 星期三

shell的父子进程

技术分享图片
 
启动/执行方式:
当前shell
              #!/bin/bash 必须行首
                        首行的#!会被内核发现,是一个魔数,内核会创建后面/bin/bash的进程,其他方式都会认为是注释
     技术分享图片
               source file    


新建子shell
            技术分享图片
             sh file  or   ./file  
               
变量
 export
    export的变量能被子进程引用










shell的父子进程

标签:col   3.3   技术分享   shel   line   www   alt   inf   技术   

原文地址:https://www.cnblogs.com/jxhd1/p/9521156.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!