aix 下的/etc/inittab注释解析

环境 产品,平台, rs6000, pseries                                       
      软件版本, aix                                                                      
      问题 aix系统在每次开机后都会读取/etc/inittab,加载需要自动执行的程序。
    如果为了便于理解或希望某命令行在下次开机后不自动执行,该如何为/etc/inittab文件加注释?
  解答 /etc/inittab 文件的注释符有两种:                                     
  1. 若整行都是注释内容,此行以一冒号(:)开始, 表示是注释行.                       
  2. 注释在命令行后面, 在注释开始前加字符 #, 表示从此以后是此行的注释内容.       

  如:                                                                                     
  #more /etc/inittab                                                     
  : @(#)49 1.28.2.9 src/bo
    s/etc/inittab/inittab, cmdoper,
    bos510 8/23/00 19:50:13
  :                                                                                       
  : COMPONENT_NAME: CMDOPER                                       
  :                                                                                       
  : ORIGINS: 3, 27                                                         
  :                                                                                       
  : (C) COPYRIGHT Internat
    ional Business Machines Corp. 19
    89, 1993
  : All Rights Reserved                                               
  : Licensed Materials - Property of IBM             
  :                                                                                       
  : US Government Users Restricted Rights
    - Use, duplication or
  : disclosure restricted by GSA ADP Sched
    ule Contract with IBM Corp.
  :                                                                                       
  : Note - initdefault and
    sysinit should be the first and
    second entry.
  :                                                                                       
  init:2:initdefault:                                                   
  brc::sysinit:/sbin/rc.boot 3 >/dev/console 2>&1 # Phase 3 of system boot

  powerfail::powerfail:/etc/rc.powerfail 2>&1 | alog -tboot > /dev/console # Power

  Failure Detection                                                       
  load64bit:2:wait:/etc/methods/cfg64 >/dev/console 2>&1 # Enable 64-bit execs

  rc:23456789:wait:/etc/rc 2>&1 | alog -tboot > /dev/console # Multi-User checks

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值