Chinaunix首页 | 论坛 | 博客
  • 博客访问: 337262
  • 博文数量: 1051
  • 博客积分: 53280
  • 博客等级: 大将
  • 技术积分: 6670
  • 用 户 组: 普通用户
  • 注册时间: 2008-09-09 13:21
文章分类

全部博文(1051)

文章存档

2011年(1)

2008年(1050)

我的朋友

分类:

2008-09-09 15:47:06



  环境 产品,平台, rs6000, pseries
  软件版本, aix
  问题 ix系统在每次开机后都会自动执行/etc/inittab中的每一行. 为了便于理解需要在/etc/inittab中加注释行,或希望某命令行在下次开机时不执行, 该如何为 /etc/inittab 文件加注释?
  解答 /etc/inittab 文件的注释符有两种:
  1. 若整行都是注释内容,此行以一冒号(:)开始, 表示是注释行.
  2. 注释在命令行后面, 在注释开始前加字符 #, 表示从此以后是此行的注释内容.
  
  如:
  #more /etc/inittab
  : @(#)49 1.28.2.9 src/bos/etc/inittab/inittab, cmdoper, bos510 8/23/00 19:50:13
  :
  : COMPONENT_NAME: CMDOPER
  :
  : ORIGINS: 3, 27
  :
  : (C) COPYRIGHT International Business Machines Corp. 1989, 1993
  : All Rights Reserved
  : Licensed Materials - Property of IBM
  :
  : US Government Users Restricted Rights - Use, duplication or
  : disclosure restricted by GSA ADP Schedule 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
  
  
  


  


 相关文章  热门文章











--------------------next---------------------

阅读(254) | 评论(0) | 转发(0) |
0

上一篇:客户端开发:tip(4)

下一篇:Web开发

给主人留下些什么吧!~~