选择显示字体大小

sunos里的shutdown中文man

刚刚翻译完,别见笑:
'man shutdown ' on sunos5.6

maintenance commands shutdown(1m)
系统维护命令 shutdown(1m)


name
名称
shutdown - shut down system, change system state
shutdown - 关毕系统,转换相同的状态

synopsis
/usr/sbin/shutdown [ -y ] [ -g grace-period ]
[ -i init-state ] [ message ]

description
shutdown is executed by the super-user to change the state
of the machine. in most cases, it is used to change from
the multi-user state (state 2) to another state.
shutdown 被super-user(超级用户)用来转换机器(系统)的状态.通常,
是从多用户状态(state 2 状态2)转换到其他状态.

by default, shutdown brings the system to a state where only
the console has access to the operating system. this state
is called single-user.
shutdown在缺省时执行的结果是把系统转换成只能在控制台上登陆的模式.
这种模式叫单用户模式.
before starting to shut down daemons and killing processes,
shutdown sends a warning message and, by default, a final
message asking for confirmation. message is a string that
is sent out following the standard warning message "the sys-
tem will be shut down in ..." if the string contains more
than one word, it should be contained within single (') or
double (") quotation marks.
在关毕守护程序并且杀掉进程前,shutdown会发出警告给用户,缺省情况下,
会有一个请求最后确认的询问.message是一个打印到标准输出上的警告信息:
"the system will be shut down in ..."如果这个string包含多个
单词,必须用单引号(')或双引号(")引用.

the warning message and the user provided message are output
when there are 7200, 3600, 1800, 1200, 600, 300, 120, 60,
and 30 seconds remaining before shutdown begins. see exam-
ples.
警告信息以7200,3600,1800,1200,600,300,120,60,30秒为单位进行输出
到标准输出上.(参看后边的例子)

system state definitions are:
下面是系统状态的定义:

state 0 stop the operating system.
终止操作系统.

state 1 state 1 is referred to as the administrative
state. in state 1 file systems required for
multi-user operations are mounted, and logins
requiring access to multi-user file systems
can be used. when the system comes up from
firmware mode into state 1, only the console
is active and other multi-user (state 2) ser-
vices are unavailable. note that not all
user processes are stopped when transitioning
from multi-user state to state 1.
state 1状态被认为是管理状态.在state 1状态下多用户文件系统
会被安装,并且那些需要多拥护文件系统的登陆方式能够使用.
当系统从(firmware mode)硬件模式进入到state 1时,
只有控制台能够被使用,其他的多用户的服务将不能使用.
请注意从多用户状态(state 2)转换到state 1时,并不是所有的用户
进程都被杀掉.

state s, s state s (or s) is referred to as the single-
user state. all user processes are stopped
on transitions to this state. in the
single-user state, file systems required for
multi-user logins are unmounted and the sys-
tem can only be accessed through the console.
logins requiring access to multi-user file
systems cannot be used.
state s(or s)是所谓的单用户模式.当进入这种模式的时候
所有的用户的进程都将被杀掉.在单用户模式下,多用户文件系统
将不被安装.系统只能在控制台上被使用.多用户系统的登陆方式将
不可用.

sunos 5.6 last change: 19 dec 1995 1

sunos 5.6 last change: 19 dec 1995 1





maintenance commands shutdown(1m)
系统维护命令 shutdown(1m)


state 5 shut the machine down so that it is safe to
remove the power. have the machine remove
power, if possible. the rc0 procedure is
called to perform this task.
关毕机器,以便把电源关掉.rc0进程将被调用执行
这个任务.
state 6 stop the operating system and reboot to the
state defined by the initdefault entry in
/etc/inittab. the rc6 procedure is called to
perform this task.
停止操作系统并且把系统重新起动到缺省的状态如
/etc/inittab里定义的那样.rc6将被调用来执行这项任务.
options
-y pre-answer the confirmation question so the
command can be run without user intervention.
用来对确认信息进行不敏感确认.(对所有确认都回答yes)
-g grace-period
allow the super-user to change the number of
seconds from the 60-second default.
以60秒为单位指定警告信息发送的间隔.

-i init-state if there are warnings, init-state specifies
the state init is to be in. by default, sys-
tem state >qspq is used.
指定转换到的状态.如果有警告信息,将要转换的状态将被加
到警告信息中去.缺省情况下,>qspq将被执行.

examples
in the following example, shutdown is being executed on host
foo and is scheduled in 120 seconds. the warning message is
output 2 minutes, 1 minute, and 30 seconds before the final
confirmation message.
下面的例子的目的是:主机将在120秒内被关毕.在最后确认之前,
警告信息每隔2分钟,1分钟30秒被输出到标准输出上..

example# shutdown -i s -g 120 "===== disk replacement ====="



shutdown started. tue jun 7 14:51:40 pdt 1994



broadcast message from root (pts/1) on foo tue jun 7 14:51:41...
the system will be shut down in 2 minutes
===== disk replacement =====
broadcast message from root (pts/1) on foo tue jun 7 14:52:41...
the system will be shut down in 1 minutes
===== disk replacement =====
broadcast message from root (pts/1) on foo tue jun 7 14:53:41...
the system will be shut down in 30 seconds
===== disk replacement =====
do you want to continue? (y or n):

files
/etc/inittab controls process dispatching by init

attributes
see attributes(5) for descriptions of the following

sunos 5.6 last change: 19 dec 1995 2

maintenance commands shutdown(1m)

attributes:


__________________________________
attribute type attribute value
__________________________________
availability sunwcsu
________________________________

see also
参照:
boot(1m), halt(1m), init(1m), killall(1m), reboot(1m),
ufsdump(1m), init.d(4), inittab(4), nologin(4), attri-
butes(5)


sunos 5.6 last change: 19 dec 1995 3


【 在 cohen (tommy) 的大作中提到: 】
【 在 colinda (无风无雨亦无情) 的大作中提到: 】
: shutdown -r now

thanks, but can you do me a favor to give
a full explanation on those switches?   


 


关键字 本文所属关键字

相关 与本文相关文章

分类 所有文章关键字导航

源码编程相关

Java   Asp   PHP   .Net   XML   C/C++   CGI   VB   Jsp   J2ee   J2se   J2me   EJB   Servlet   Tomcat   Resin   Struts   Weblogic   Eclipse   ANT   GUI   JMS   Web servise   IDEA   Webphere   Hibernate   Spring   Jboss   Applet   Swing   Socket   Javamail   Perl   Ajax   P2P   安全   模式   框架   测试   开源   游戏

SQL数据库相关

My-SQL   Ms-SQL   Access   DB2   Oracle   Sybase   SQLserver   索引   存储过程   加密   数据库   分页   视图  

手机无线相关

3G   Wap   CDMA   GRPS   GSM   IVR   彩信   短信   无线   增值业务

网页设计制作相关

HTML   CSS   网页配色   网页特效   Javascript   VBscript   Dreamweaver   Frontpage   JS   Web   网站设计

网站建设推广相关

建站经验   网站优化   网站排名   推广   Alexa

操作系统/服务器相关

Windows XP   Windows 2000   Windows 2003   Windows Me   Windows 9.x   Linux   UNIX   注册表   操作系统   服务器   应用服务器

图形图像多媒体相关

Photoshop   Fireworks   Flash   Coreldraw   Illustrator   Freehand   Photoimpact   多媒体   图形图像

标准 网站致力的规范

Valid CSS!

无不良内容,无不良广告,无恶意代码

Valid XHTML 1.0 Transitional

creativecommons