<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[Blog of Xay]]></title> 
<link>http://www.xayljq.com.cn/blog/index.php</link> 
<description><![CDATA[好书越到结尾越精彩]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[Blog of Xay]]></copyright>
<item>
<link>http://www.xayljq.com.cn/blog/read.php?25</link>
<title><![CDATA[Linux文件权限]]></title> 
<author>xayljq &lt;xayljq@gmail.com&gt;</author>
<category><![CDATA[Linux]]></category>
<pubDate>Thu, 21 May 2009 15:47:37 +0000</pubDate> 
<guid>http://www.xayljq.com.cn/blog/read.php?25</guid> 
<description>
<![CDATA[ 
	<p>1.用户组</p><p>&nbsp;&nbsp;&nbsp;&nbsp;Linux中每个用户都属于一个由一个用户名标识的用户组</p><p>2.文件权限</p><p>&nbsp;&nbsp;&nbsp;&nbsp;Linux中每个文件对于三种用户可以有不同的权限，他们分别是拥有者，用户组，其他人</p><p>&nbsp;&nbsp;&nbsp;&nbsp;在终端里输入以下命令：ls，会出现如下信息</p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-rwxrwxrwx 1 root root 293 Oct 19 21:24 test</p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;他们分别的含义是文件的属性，连接数，文件拥有者，文件所属用户组，文件大小，文件最新修改时间，文件名</p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;关于文件属性的第一个字符，见下表： </p><p><table border="0"><tbody><tr><td>[d]</td><td>目录</td></tr><tr><td>[-]</td><td>文件</td></tr><tr><td>[l]</td><td>链接文件</td></tr><tr><td>[b]</td><td>设备文件中可供存储的接口设备</td></tr><tr><td>[c]</td><td>设备文件的串行端口设备，例如键盘、鼠标</td></tr></tbody></table></p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;剩下9个字符，3个1组，分别代表拥有者，用户组，其他人对该文件的权限：r表示可读，w表示可写，x表示可执行</p><p>3.修改文件权限</p><p>&nbsp;&nbsp;&nbsp;&nbsp;更改所属用户组：chgrp</p><p>&nbsp;&nbsp;&nbsp;&nbsp;更改文件拥有者：chown</p><p>&nbsp;&nbsp;&nbsp;&nbsp;更改9个属性：chmod</p><p>&nbsp;&nbsp;&nbsp;&nbsp;其中chmod的用法很有趣，具体用法找男人(man)</p>
]]>
</description>
</item><item>
<link>http://www.xayljq.com.cn/blog/read.php?24</link>
<title><![CDATA[X Window与命令行模式的设置与切换]]></title> 
<author>xayljq &lt;xayljq@gmail.com&gt;</author>
<category><![CDATA[Linux]]></category>
<pubDate>Wed, 20 May 2009 05:23:31 +0000</pubDate> 
<guid>http://www.xayljq.com.cn/blog/read.php?24</guid> 
<description>
<![CDATA[ 
	一.以X Window模式登入Linux<br />&nbsp;&nbsp;&nbsp; 1.使用Ctrl+Alt+[F1-F6]切换至终端或控制台，Ctrl+Alt+F7回到X Window<br />二.以命令行模式登录Linux<br />&nbsp;&nbsp;&nbsp; 1.设置：修改/etc/inittab文件的内容<br />&nbsp;&nbsp;&nbsp;&nbsp;2.切换至X Window模式：startx命令<br />三.Bash Shell的三个热键<br />&nbsp;&nbsp;&nbsp; 1.[Tab]：补全命令或文件<br />&nbsp;&nbsp;&nbsp; 2.[Ctrl]+c：终止当前命令<br />&nbsp;&nbsp;&nbsp; 3.[Ctrl]+d：EOF的意思，也可以取代exit命令的输入<br />
]]>
</description>
</item>
</channel>
</rss>