<?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>ubuntu,debian,redhat -linuxany.com &#187; 2. LinuxOS</title>
	<atom:link href="http://www.linuxany.com/archives/category/linuxos/feed" rel="self" type="application/rss+xml" />
	<link>http://www.linuxany.com</link>
	<description></description>
	<lastBuildDate>Thu, 26 Jan 2012 08:59:02 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Linux 给服务器增添色彩</title>
		<link>http://www.linuxany.com/archives/1952.html</link>
		<comments>http://www.linuxany.com/archives/1952.html#comments</comments>
		<pubDate>Wed, 04 Jan 2012 05:08:48 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[RedHat]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[bashrc]]></category>
		<category><![CDATA[Console]]></category>

		<guid isPermaLink="false">http://www.linuxany.com/?p=1952</guid>
		<description><![CDATA[在/root/.bashrc下添加一行PS1=”\[\e[37;40m\][\[\e[32;40m\]\u\[\e[37;40m\]@\h \[\e[35;40m\]\W\[\e[0m\]]\\$ \[\e[33;40m\]“，然后退出重新login即可，效果图如下： 您还可能感兴趣的内容Linux console 的“資源回收筒”用 bootsplash 妝點 Linux Console]]></description>
		<wfw:commentRss>http://www.linuxany.com/archives/1952.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux 系统脚本的常见启动顺序</title>
		<link>http://www.linuxany.com/archives/1922.html</link>
		<comments>http://www.linuxany.com/archives/1922.html#comments</comments>
		<pubDate>Sun, 04 Dec 2011 14:27:54 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[RedHat]]></category>
		<category><![CDATA[chkconfig]]></category>
		<category><![CDATA[init]]></category>
		<category><![CDATA[rc.local]]></category>
		<category><![CDATA[sysinit]]></category>

		<guid isPermaLink="false">http://www.linuxany.com/?p=1922</guid>
		<description><![CDATA[1、相关基础知识点 1）redhat的启动方式和执行次序是： 加载内核 执行init程序 /etc/rc.d/rc.sysinit # 由init执行的第一个脚本/etc/rc.d/rc $RUNLEVEL # $RUNLEVEL为缺省的运行模式/etc/rc.d/rc.local&#160; &#160; &#160;#相应级别服务启动之后、在执行该文件（其实也可以把需要执行的命令写到该文件中）/sbin/mingetty # 等待用户登录 在Redhat中，/etc/rc.d/rc.sysinit主要做在各个运行模式中相同的初始化工作，包括： 调入keymap以及系统字体启动swapping设置主机名设置NIS域名检查（fsck）并mount文件系统打开quota装载声卡模块设置系统时钟 等等。 /etc/rc.d/rc则根据其参数指定的运行模式(运行级别，你在inittab文件中可以设置)来执行相应目录下的脚本。凡是以Kxx开头的 ，都以stop为参数来调用；凡是以Sxx开头的，都以start为参数来调用。调用的顺序按xx 从小到大来执行。(其中xx是数字、表示的是启动顺序)例如，假设缺省的运行模式是3，/etc/rc.d/rc就会按上述方式调用 /etc/rc.d/rc3.d/下的脚本。 值得一提的是，Redhat中的运行模式2、3、5都把/etc/rc.d/rc.local做为初始化脚本中 的最后一个，所以用户可以自己在这个文件中添加一些需要在其他初始化工作之后，登录之前执行的命令。 init在等待/etc/rc.d/rc执行完毕之后（因为在/etc/inittab中/etc/rc.d/rc的 action是wait），将在指定的各个虚拟终端上运行/sbin/mingetty，等待用户的登录。 至此，LINUX的启动结束。 2）init运行级别及指令 一、什么是INIT: init是Linux系统操作中不可缺少的程序之一。 所谓的init进程，它是一个由内核启动的用户级进程。 内核自行启动（已经被载入内存，开始运行，并已初始化所有的设备驱动程序和数据结构等）之后，就通过启动一个用户级程序init的方式，完成引导进程。所以,init始终是第一个进程（其进程编号始终为1）。 内核会在过去曾使用过init的几个地方查找它，它的正确位置（对Linux系统来说）是/sbin/init。如果内核找不到init，它就会试着运行/bin/sh，如果运行失败，系统的启动也会失败。 二、运行级别 那么，到底什么是运行级呢？ 简单的说，运行级就是操作系统当前正在运行的功能级别。这个级别从1到6 ，具有不同的功能。 不同的运行级定义如下 # 0 – 停机（千万不能把initdefault 设置为0 ）# 1 – 单用户模式&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; [...]]]></description>
		<wfw:commentRss>http://www.linuxany.com/archives/1922.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Vim技巧若干</title>
		<link>http://www.linuxany.com/archives/1860.html</link>
		<comments>http://www.linuxany.com/archives/1860.html#comments</comments>
		<pubDate>Sun, 13 Nov 2011 14:01:23 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[RedHat]]></category>
		<category><![CDATA[vim]]></category>

		<guid isPermaLink="false">http://www.linuxany.com/?p=1860</guid>
		<description><![CDATA[　　Vim能力强大，功能繁多，快捷键更是数不胜数，以至于苦逼的程序员们根本无法完全掌握。事实上，每个使用Vim的程序员，包括高级用户，只是在使用Vim所提供功能的一个很小的子集，而且也只需要使用一个很小的子集。在学会基本的编辑技巧的基础上，根据自己的需要，掌握一些“高级”技巧，可以极大的提高编辑效率。这里约略地列出我平时习惯使用的有限的一些技巧，希望你能够发现自己不知道却对你也适用的某一个。 G, gg: 光标移动至文件首/尾； zz, zt, zb: 将光标所在行居中/置顶/置尾； H, M, L: 定位光标到当前窗口的首/中/尾； *, #, n, N: 向前/后定位当前光标所在word，n/N沿相应/相反方向重复定位； ^a, ^x: 若当前光标所在word是数字，可递增/递减该数字，同时支持decimal和hexadecimal； ^, g_: 即Shift+6，定位光标到当前行首/尾的第一个非空白字符； ^d, ^t: insert模式下，缩进/反缩进当前行； ^w: insert模式下，向后删除一个word； ^y: insert模式下，复制上一行同列字符； ^x^f: insert模式下，补全路径名； ^x^n: insert模式下，补全tag（需要tags文件的支持）； ^x^l: insert模式下，补全行（根据已有行）； I, A: 定位光标至当前行首/尾，并进入insert模式，I会忽略行首空白； D, C: 删除光标所在位置到行尾的字符，C会进入insert模式； cib: 或者ci(或者ci)，删除当前括号内的所有字符并进入insert模式。c还可以是d或者其他编辑字符，i还可以是a（此时会将括号一同删除），b还可以是B(大括号)、t(html标签)或者具体的配对符号，如(), [], {}, ”, “”, 。 参见:h text-objects； %: normal模式下%会跳转至配对括号； %: lastline模式下代表当前buffer的文件名，可以有许多修饰字符，例如:sp [...]]]></description>
		<wfw:commentRss>http://www.linuxany.com/archives/1860.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux 服务器性能分析</title>
		<link>http://www.linuxany.com/archives/1640.html</link>
		<comments>http://www.linuxany.com/archives/1640.html#comments</comments>
		<pubDate>Mon, 29 Aug 2011 02:16:27 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[RedHat]]></category>
		<category><![CDATA[free]]></category>
		<category><![CDATA[iostat]]></category>
		<category><![CDATA[iowait]]></category>
		<category><![CDATA[swap]]></category>
		<category><![CDATA[top]]></category>
		<category><![CDATA[vmstat]]></category>

		<guid isPermaLink="false">http://www.linuxany.com/?p=1640</guid>
		<description><![CDATA[一、影响Linux服务器性能的因素 1. 操作系统级        CPU        内存        磁盘I/O带宽        网络I/O带宽 2.        程序应用级 二、系统性能评估标准 影响性能因素 评判标准 好 坏 糟糕 CPU user% + sys%&#60; 70% user% + sys%= 85% user% + sys% &#62;=90% 内存 Swap In（si）＝0 Swap Out（so）＝0 Per CPU with 10 page/s More Swap In &#38; Swap Out 磁盘 iowait % &#60; 20% iowait % [...]]]></description>
		<wfw:commentRss>http://www.linuxany.com/archives/1640.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Linux 特殊权限SUID,SGID,SBIT详解</title>
		<link>http://www.linuxany.com/archives/1543.html</link>
		<comments>http://www.linuxany.com/archives/1543.html#comments</comments>
		<pubDate>Wed, 04 May 2011 05:07:23 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[RedHat]]></category>
		<category><![CDATA[chmod]]></category>
		<category><![CDATA[gid]]></category>
		<category><![CDATA[sbit]]></category>
		<category><![CDATA[sgid]]></category>
		<category><![CDATA[suid]]></category>
		<category><![CDATA[uid]]></category>

		<guid isPermaLink="false">http://www.linuxany.com/?p=1543</guid>
		<description><![CDATA[大家都知道文件和目录的权限最常见的有三个.可读(r)..可写(w)..可执行(x)..它们的级别分别是4..2..1..我们有时也会发现有些文件所属主的权限上带有一个s的标志位.目录的所属组上也带有s标志位.很多人不理解这是为什么….下面我们举例来看一下… #ls -l /usr/bin/passwd-rwsr-xr-x 1 root root 19876 Jul 17 2006 /usr/bin/passwd 这个文件的所属主的x标志位上变成了s,这时称为set uid ..简写就是suid..其实这个文件属性也没有特殊的含义..当这个s标志位出现在一些脚本上时,它就有意义了…比方说我我们有一个脚本名为sum.sh.这个脚本的权限如下: -rwsrwxr-x 1 root root 117 Feb 6 20:46 sum.sh 这个脚本的所属主和所属组为root.我们当然可以以root的用户的身份执行它..我们还可以看见它的所属主的标志位上有个s..其他人有读取和执行的权限.假如我们现在有个普通用户名为redhat..现在切换到redhat..执行此脚本..表面上我们看是执行成功了..其实我们是借助root用户的身份来执行它..而不是redhat..这就是suid的特性…. 下满我们来说下SGID,看了上面的SUID后很容易就知道所谓SGID就是将标志s加到gid的x标志位上..称为set gid.简称sgid..在这强调一下SUID我们一般用在文件上.特别是一些脚本上…SGID用在目录上最多…比方说我以root身份创建一个目录a.给他加上sgid权限 #mkdir a#chmod 2757 a#ls -ldrwxr-srwx 2 root root 4096 Feb 6 21:09 a 因为我们给a目录其他人所具有的权限是可读,可写,可执行…当我们以www用户的身份切换到另外一个终端..进入a目录中,我们在此目录中创建一个目录b和一个文件c [www@linuxany a]$ mkdir b[www@linuxany a]$ touch c[www@linuxany a]$ ls -ldrwxrwsr-x 2 redhat root 4096 [...]]]></description>
		<wfw:commentRss>http://www.linuxany.com/archives/1543.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux 10个最酷的单行命令</title>
		<link>http://www.linuxany.com/archives/1537.html</link>
		<comments>http://www.linuxany.com/archives/1537.html#comments</comments>
		<pubDate>Wed, 04 May 2011 04:37:25 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[RedHat]]></category>
		<category><![CDATA[mtr]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[SSH]]></category>
		<category><![CDATA[sudo]]></category>

		<guid isPermaLink="false">http://www.linuxany.com/?p=1537</guid>
		<description><![CDATA[sudo !! 以 root 帐户执行上一条命令。 python -m SimpleHTTPServer 利用 Python 搭建一个简单的 Web 服务器，可通过 http://$HOSTNAME:8000 访问。 :w !sudo tee % 在 Vim 中无需权限保存编辑的文件。 cd - 更改到上一次访问的目录。 ^foo^bar 将上一条命令中的 foo 替换为 bar，并执行。 cp filename{,.bak} 快速备份或复制文件。 mtr linuxany.com traceroute + ping !whatever:p 搜索命令历史，但不执行。 $ssh-copy-id www@linuxany.com 将 ssh keys 复制到 www@linuxany.com 以启用无密码 SSH 登录。 ffmpeg -f x11grab -s wxga [...]]]></description>
		<wfw:commentRss>http://www.linuxany.com/archives/1537.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>linux 使用noatime提升文件系统性能</title>
		<link>http://www.linuxany.com/archives/1535.html</link>
		<comments>http://www.linuxany.com/archives/1535.html#comments</comments>
		<pubDate>Mon, 25 Apr 2011 05:23:32 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[RedHat]]></category>
		<category><![CDATA[fstab]]></category>
		<category><![CDATA[mount]]></category>
		<category><![CDATA[noatime]]></category>
		<category><![CDATA[nodiratime]]></category>
		<category><![CDATA[remount]]></category>

		<guid isPermaLink="false">http://www.linuxany.com/?p=1535</guid>
		<description><![CDATA[默认的方式下linux会把文件访问的时间atime做记录，这在绝大部分的场合都是没有必要的，如果遇到机器IO负载高或是CPU WAIT高的情况，可以尝试使用noatime和nodiratime，疗效好，见效快。 1、修改/etc/fstab，类似 /dev/hda9 /data ext3 defaults 0 2 改成 /dev/hda9 /data ext3 defaults,noatime,nodiratime 0 2 2、remount分区，执行 mount -o remount /data remount这个动作大可放心执行，顶多冒点汗。 如果不想改fstab，直接用mount命令： mount -o noatime -o nodiratime -o remount /data 您还可能感兴趣的内容linux目录数和文件数限制(目录下最大文件数)制作USB版的Debian]]></description>
		<wfw:commentRss>http://www.linuxany.com/archives/1535.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

