<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>O I P O P - 私人领域 &#187; 关机</title>
	<atom:link href="http://blog.oipop.com/archives/tag/%e5%85%b3%e6%9c%ba/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.oipop.com</link>
	<description>From the Internet, For the Internet.</description>
	<lastBuildDate>Mon, 21 Jun 2010 21:13:40 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Ubuntu 关机、重启命令</title>
		<link>http://blog.oipop.com/archives/72</link>
		<comments>http://blog.oipop.com/archives/72#comments</comments>
		<pubDate>Tue, 25 Aug 2009 03:11:59 +0000</pubDate>
		<dc:creator>Kinsta</dc:creator>
				<category><![CDATA[linux系统]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[关机]]></category>
		<category><![CDATA[关机命令]]></category>

		<guid isPermaLink="false">http://blog.oipop.com/?p=72</guid>
		<description><![CDATA[1关机命令 shutdown
好像ubuntu的终端中默认的是当前用户的命令，只是普通用户，因此在终端器中可以使用sudo -sh 转换到管理员root用户下执行命令。
1)shutdown &#8211;help
可以查看shutdown命令如何使用，当然也可以使用man shutdown命令。
2） shutdown -h now 现在立即关机
3）shutdown -r now 现在立即重启

4）shutdown -r +3 三分钟后重启
5）shutdown -h +3 &#8220;The System will shutdown after 3 minutes&#8221; 提示使用者将在三分钟后关机
6）shutdown -r 20:23 在20：23时将重启计算机
7）shutdown -r 20:23 &#38; 可以将在20：23时重启的任务放到后台去，用户可以继续操作终端
2中断命令
1）执行完命令后（若没有转到后台），可以使用CTRL+C来中止命令
2）kill 程序编码
当命令在后台执行时系统会返回一个程序编码，例如：在使用 shutdown -r 20:23 &#38; 系统返回系统编码：4905
我们可以使用kill 4905来中止重启命令
3ps aux &#124; grep 程序编号
我们如果知道程序的编号，我们可以使用ps aux &#124;grep 程序编号来查询该程序编号对应的命令是什么。
例如上面的程序编号为4905 ，我们可以使用ps aux &#124; grep 4905 就可以查到 shutdown -r [...]]]></description>
			<content:encoded><![CDATA[<p>1关机命令 shutdown</p>
<p>好像ubuntu的终端中默认的是当前用户的命令，只是普通用户，因此在终端器中可以使用sudo -sh 转换到管理员root用户下执行命令。</p>
<p>1)shutdown &#8211;help</p>
<p>可以查看shutdown命令如何使用，当然也可以使用man shutdown命令。</p>
<p>2） shutdown -h now 现在立即关机</p>
<p>3）shutdown -r now 现在立即重启<br />
<span id="more-72"></span></p>
<p>4）shutdown -r +3 三分钟后重启</p>
<p>5）shutdown -h +3 &#8220;The System will shutdown after 3 minutes&#8221; 提示使用者将在三分钟后关机</p>
<p>6）shutdown -r 20:23 在20：23时将重启计算机</p>
<p>7）shutdown -r 20:23 &amp; 可以将在20：23时重启的任务放到后台去，用户可以继续操作终端</p>
<p>2中断命令</p>
<p>1）执行完命令后（若没有转到后台），可以使用CTRL+C来中止命令</p>
<p>2）kill 程序编码</p>
<p>当命令在后台执行时系统会返回一个程序编码，例如：在使用 shutdown -r 20:23 &amp; 系统返回系统编码：4905</p>
<p>我们可以使用kill 4905来中止重启命令</p>
<p>3ps aux | grep 程序编号</p>
<p>我们如果知道程序的编号，我们可以使用ps aux |grep 程序编号来查询该程序编号对应的命令是什么。</p>
<p>例如上面的程序编号为4905 ，我们可以使用ps aux | grep 4905 就可以查到 shutdown -r 20:23 &amp; 的命令</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.oipop.com/archives/72/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
