<?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>嘟嘟鱼 &#187; linux</title>
	<atom:link href="http://www.duduyu.net/tag/linux/feed" rel="self" type="application/rss+xml" />
	<link>http://www.duduyu.net</link>
	<description>嘟嘟鱼的个人博客</description>
	<lastBuildDate>Thu, 15 Dec 2011 07:54:11 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>linux：/lib/libc.so.6: version `glibc_2.7′ not found</title>
		<link>http://www.duduyu.net/liblibc-so-6-version-glibc_2-7-not-found</link>
		<comments>http://www.duduyu.net/liblibc-so-6-version-glibc_2-7-not-found#comments</comments>
		<pubDate>Fri, 17 Jun 2011 02:13:29 +0000</pubDate>
		<dc:creator>嘟嘟鱼</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[glibc]]></category>
		<category><![CDATA[rar]]></category>

		<guid isPermaLink="false">http://www.kuaixiang.net/?p=12033</guid>
		<description><![CDATA[刚用户反映服务器rar版本低,下了个4.0的运行提示 /lib/libc.so.6: version `GLIBC_2.7′ not found 升级了centos的glibc库 yum -y update glibc 问题依旧。用命令查看glibc库的信息 rpm -qi glibc 显示系统的glibc库版本为... ]]></description>
			<content:encoded><![CDATA[<p>刚用户反映服务器rar版本低,下了个4.0的运行提示</p>
<blockquote><p>/lib/libc.so.6: version `GLIBC_2.7′ not found</p></blockquote>
<p>升级了centos的glibc库<br />
<code>yum -y update glibc</code><br />
问题依旧。用命令查看glibc库的信息<br />
<code>rpm -qi glibc </code><br />
显示系统的glibc库版本为2.5</p>
<p>在CentOS中用更新命令到2.5已经是最新版本了，只好手动下载 glibc 2.7 的源码包编译安装更新：</p>
<p>地址：http://ftp.gnu.org/pub/gnu/glibc/glibc-2.7.tar.gz<br />
<code>cd /usr/local/src<br />
wget http://ftp.gnu.org/pub/gnu/glibc/glibc-2.7.tar.gz<br />
tar zxvf glibc-2.7.tar.gz<br />
glibc-2.7/configure #执行configure命令时不能进到glibc-2.7文件夹里面，否则无法执行<br />
cd glibc-2.7<br />
make &amp;&amp; make install</code></p>
<h3  class="related_post_title">您可能也对这些文章感兴趣</h3><ul class="related_post"><li><a href="http://www.duduyu.net/linux-installation-and-use-of-rar" title="linux下RAR的安装和使用">linux下RAR的安装和使用</a></li><li><a href="http://www.duduyu.net/linux-batch-rename-files" title="Linux批量重命名文件">Linux批量重命名文件</a></li><li><a href="http://www.duduyu.net/php-load-linux-under-way-mbstring" title="linux下php加载mbstring的方法">linux下php加载mbstring的方法</a></li><li><a href="http://www.duduyu.net/statistics-document-the-number-of-linux" title="linux 统计文件个数">linux 统计文件个数</a></li><li><a href="http://www.duduyu.net/argument-list-too-long-solution" title="Argument list too long 的解决办法">Argument list too long 的解决办法</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.duduyu.net/liblibc-so-6-version-glibc_2-7-not-found/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux批量重命名文件</title>
		<link>http://www.duduyu.net/linux-batch-rename-files</link>
		<comments>http://www.duduyu.net/linux-batch-rename-files#comments</comments>
		<pubDate>Mon, 11 May 2009 02:14:11 +0000</pubDate>
		<dc:creator>嘟嘟鱼</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[批量重命名]]></category>

		<guid isPermaLink="false">http://www.quickshare.com.cn/?p=11625</guid>
		<description><![CDATA[今天一个用户装的论坛把表前缀写成别的了，要改回cdb开头，于是乎就需要批量修改文件名，上网搜索了下Linux批量重命名文件，发现小蜗牛的一篇文章很实用，就收藏了。 目的：批量重命名... ]]></description>
			<content:encoded><![CDATA[<p>今天一个用户装的论坛把表前缀写成别的了，要改回cdb开头，于是乎就需要批量修改文件名，上网搜索了下<a href="http://www.kuaixiang.net/linux-batch-rename-files">Linux批量重命名文件</a>，发现<a href="http://snailwarrior.blog.51cto.com/680306/139706" target="_blank">小蜗牛的一篇文章</a>很实用，就收藏了。</p>
<div><span style="color: #ff0000;">目的：</span><span style="color: #0000ff;">批量重命名一些文件，这些文件有共同特征，比如具有相同的字母，或者没有共同特征，想统一重命名，修改它们相同位置上的字符等等。</span></div>
<div></div>
<div><span style="color: #000000;">机器马大侠给了个新提示rename 就可以实现，一试用果然更爽，表示感谢。</span></div>
<div><span style="color: #000000;">以下命令实现的结果是把cdb替换成abc</span></div>
<div><span style="color: #000000;">rename cdb abc cdb*</span></div>
<div> </div>
<div><strong>1、我想把它们的名字的第一个1个字母变为"q"，其它的不变</strong></div>
<div><strong></strong> </div>
<div>[root@pps mailqueue]# for i in `ls`; do mv -f $i `echo $i | sed 's/^./q/'`; done</div>
<div> </div>
<div>----------------------------------------<br />
或者写个脚本，显得更加清晰：</div>
<div>for file in `ls`<br />
do<br />
  newfile =`echo $i | sed 's/^./q/'`<br />
　mv $file $newfile<br />
done<br />
----------------------------------------</div>
<div> </div>
<div><strong>2、修改前面5个字母为zhaozh</strong></div>
<div><strong></strong> </div>
<div>[root@pps mailqueue]# for i in `ls`; do mv -f $i `echo $i | sed 's/^...../zhaozh/'`; done</div>
<div> </div>
<div><strong>3、修改后面5个字母为snail</strong></div>
<div> </div>
<div>[root@pps mailqueue]# for i in `ls`; do mv -f $i `echo $i | sed 's/.....$/snail/'`; done</div>
<div> </div>
<div><strong>4、在前面添加 _hoho_</strong></div>
<div><strong></strong> </div>
<div>[root@pps mailqueue]# for i in `ls`; do mv -f $i `echo "_hoho_"$i`; done</div>
<div> </div>
<div><strong>5、所有的小写字母变大写字母</strong></div>
<div> </div>
<div>[root@pps mailqueue]# for i in `ls`; do mv -f $i `echo $i | tr a-z A-Z`; done</div>
<div><span style="color: #228b22;"><strong>唉，举了5个例子，说到底就是用“for 循环 + 组合命令处理”的思路来实现文件批量重命名滴。</strong></span></div>
<h3  class="related_post_title">您可能也对这些文章感兴趣</h3><ul class="related_post"><li><a href="http://www.duduyu.net/liblibc-so-6-version-glibc_2-7-not-found" title="linux：/lib/libc.so.6: version `glibc_2.7′ not found">linux：/lib/libc.so.6: version `glibc_2.7′ not found</a></li><li><a href="http://www.duduyu.net/php-load-linux-under-way-mbstring" title="linux下php加载mbstring的方法">linux下php加载mbstring的方法</a></li><li><a href="http://www.duduyu.net/statistics-document-the-number-of-linux" title="linux 统计文件个数">linux 统计文件个数</a></li><li><a href="http://www.duduyu.net/argument-list-too-long-solution" title="Argument list too long 的解决办法">Argument list too long 的解决办法</a></li><li><a href="http://www.duduyu.net/linux-compression-format-commonly-used-under-the-method-of-compression-and-decompression" title="Linux下常用压缩格式的压缩与解压方法">Linux下常用压缩格式的压缩与解压方法</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.duduyu.net/linux-batch-rename-files/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>linux下php加载mbstring的方法</title>
		<link>http://www.duduyu.net/php-load-linux-under-way-mbstring</link>
		<comments>http://www.duduyu.net/php-load-linux-under-way-mbstring#comments</comments>
		<pubDate>Fri, 09 Jan 2009 06:31:03 +0000</pubDate>
		<dc:creator>嘟嘟鱼</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[mbstring]]></category>
		<category><![CDATA[pdo_mysql]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.quickshare.com.cn/?p=11468</guid>
		<description><![CDATA[最近服务器上有人需要用到mbstring，还有pdo_mysql，问的人越来越多了，总结下编译方法吧。 环境php5.2.4, 不支持mbstring扩展 假如php的源码包在/usr/local/src/php-5.2.4 php安装目录是/usr/local/php # cd /usr/lo... ]]></description>
			<content:encoded><![CDATA[<p>最近服务器上有人需要用到mbstring，还有pdo_mysql，问的人越来越多了，总结下编译方法吧。<br />
环境php5.2.4, 不支持mbstring扩展<br />
假如php的源码包在/usr/local/src/php-5.2.4<br />
php安装目录是/usr/local/php</p>
<p># cd /usr/local/src/php-5.2.4/ext/mbstring/<br />
# rpm -qa|egrep "autoconf|gcc"                        这个是检测这些组件是否安装，没有安装请执行下面这句，否则会报错<br />
# yum -y install autoconf gcc gcc-c++<br />
# phpize<br />
# ./configure --with-php-config=/usr/local/bin/php-config<br />
# make<br />
# make install</p>
<p>执行完毕后在php.ini里增加extension=mbstring.so</p>
<p>重启web服务器, 看一下phpinfo, 应该支持mbstring了, 完毕!</p>
<p>pdo_mysql 加载方法同上把mbstring替换成pdo_mysql即可</p>
<h3  class="related_post_title">您可能也对这些文章感兴趣</h3><ul class="related_post"><li><a href="http://www.duduyu.net/lamp-peizhi-for-centos5" title="L.A.M.P环境配置方法 for CentOS 5.0">L.A.M.P环境配置方法 for CentOS 5.0</a></li><li><a href="http://www.duduyu.net/liblibc-so-6-version-glibc_2-7-not-found" title="linux：/lib/libc.so.6: version `glibc_2.7′ not found">linux：/lib/libc.so.6: version `glibc_2.7′ not found</a></li><li><a href="http://www.duduyu.net/to-choose-u0026quotnextu0026quot-programming-language" title="选择学习“下一个”程序语言">选择学习“下一个”程序语言</a></li><li><a href="http://www.duduyu.net/linux-batch-rename-files" title="Linux批量重命名文件">Linux批量重命名文件</a></li><li><a href="http://www.duduyu.net/use-php-to-download-css-file-picture" title="利用PHP下载CSS文件中的图片">利用PHP下载CSS文件中的图片</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.duduyu.net/php-load-linux-under-way-mbstring/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>linux 统计文件个数</title>
		<link>http://www.duduyu.net/statistics-document-the-number-of-linux</link>
		<comments>http://www.duduyu.net/statistics-document-the-number-of-linux#comments</comments>
		<pubDate>Sun, 28 Sep 2008 15:13:03 +0000</pubDate>
		<dc:creator>嘟嘟鱼</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[统计]]></category>

		<guid isPermaLink="false">http://www.quickshare.com.cn/?p=11082</guid>
		<description><![CDATA[查看某文件夹下文件的个数 ls -l &#124;grep "^-"&#124;wc -l 或 find ./company -type f &#124; wc -l 查看某文件夹下文件的个数，包括子文件夹里的。 ls -lR&#124;grep "^-"&#124;wc -l 查看某文件夹下文件夹的个数，... ]]></description>
			<content:encoded><![CDATA[<p>查看某文件夹下文件的个数<br />
ls -l |grep "^-"|wc -l<br />
或<br />
find ./company -type f | wc -l<br />
查看某文件夹下文件的个数，包括子文件夹里的。<br />
ls -lR|grep "^-"|wc -l<br />
查看某文件夹下文件夹的个数，包括子文件夹里的。<br />
ls -lR|grep "^d"|wc -l<br />
说明：<br />
ls -l<br />
长列表输出该目录下文件信息(注意这里的文件，不同于一般的文件，可能是目录、链接、设备文件等)<br />
grep "^-"<br />
这里将长列表输出信息过滤一部分，只保留一般文件，如果只保留目录就是 ^d<br />
wc -l<br />
统计输出信息的行数，因为已经过滤得只剩一般文件了，所以统计结果就是一般文件信息的行数，又由于<br />
一行信息对应一个文件，所以也就是文件的个数。</p>
<h3  class="related_post_title">您可能也对这些文章感兴趣</h3><ul class="related_post"><li><a href="http://www.duduyu.net/liblibc-so-6-version-glibc_2-7-not-found" title="linux：/lib/libc.so.6: version `glibc_2.7′ not found">linux：/lib/libc.so.6: version `glibc_2.7′ not found</a></li><li><a href="http://www.duduyu.net/linux-batch-rename-files" title="Linux批量重命名文件">Linux批量重命名文件</a></li><li><a href="http://www.duduyu.net/php-load-linux-under-way-mbstring" title="linux下php加载mbstring的方法">linux下php加载mbstring的方法</a></li><li><a href="http://www.duduyu.net/argument-list-too-long-solution" title="Argument list too long 的解决办法">Argument list too long 的解决办法</a></li><li><a href="http://www.duduyu.net/linux-compression-format-commonly-used-under-the-method-of-compression-and-decompression" title="Linux下常用压缩格式的压缩与解压方法">Linux下常用压缩格式的压缩与解压方法</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.duduyu.net/statistics-document-the-number-of-linux/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Argument list too long 的解决办法</title>
		<link>http://www.duduyu.net/argument-list-too-long-solution</link>
		<comments>http://www.duduyu.net/argument-list-too-long-solution#comments</comments>
		<pubDate>Mon, 23 Jun 2008 09:08:57 +0000</pubDate>
		<dc:creator>嘟嘟鱼</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[rm]]></category>

		<guid isPermaLink="false">http://www.quickshare.com.cn/?p=10915</guid>
		<description><![CDATA[    今天一个用户空间超了，他空间使用情况老是统计不对，很是郁闷，登录服务器查看他用的是ecshop的程序，templates/caches 这个文件夹就占了130多m，这里全是缓存文件，问了下ecshop的技术支... ]]></description>
			<content:encoded><![CDATA[<p>    今天一个用户空间超了，他空间使用情况老是统计不对，很是郁闷，登录服务器查看他用的是ecshop的程序，templates/caches 这个文件夹就占了130多m，这里全是缓存文件，问了下ecshop的技术支持说下个版本会改进此问题，直接进templates/caches 运行rm -rf * 提示<strong>-bash: /bin/rm: Argument list too long </strong>，看提示是里面文件太多了，mv也不行，问了下系统部的同事要了个脚本执行了一下就删除了，代码如下：</p>
<blockquote><p>#!/bin/bash</p>
<p># 设定需要删除的文件夹<br />
RM_DIR='/data/files'</p>
<p>cd $RM_DIR<br />
for I in `ls`<br />
do<br />
 rm -f $I<br />
done</p></blockquote>
<p>第二种解决方法:find所有文件,然后送给rm删除.<br />
find /var/spool/mqueue -type f -exec rm {} ;</p>
<p>2009年4月3日新增一种方法：</p>
<p>find PATH -name *.mp3 -exec rm {} \;</p>
<p>如：解决方法：find  ./cache  -name ‘*’ -exec rm {} \; 等到执行完毕之后，再进入cache，执行一个rm –rf *即可。此方法来自：<a href="http://www.storyday.com" target="_blank">生活点滴</a></p>
<h3  class="related_post_title">您可能也对这些文章感兴趣</h3><ul class="related_post"><li><a href="http://www.duduyu.net/liblibc-so-6-version-glibc_2-7-not-found" title="linux：/lib/libc.so.6: version `glibc_2.7′ not found">linux：/lib/libc.so.6: version `glibc_2.7′ not found</a></li><li><a href="http://www.duduyu.net/linux-batch-rename-files" title="Linux批量重命名文件">Linux批量重命名文件</a></li><li><a href="http://www.duduyu.net/php-load-linux-under-way-mbstring" title="linux下php加载mbstring的方法">linux下php加载mbstring的方法</a></li><li><a href="http://www.duduyu.net/statistics-document-the-number-of-linux" title="linux 统计文件个数">linux 统计文件个数</a></li><li><a href="http://www.duduyu.net/linux-compression-format-commonly-used-under-the-method-of-compression-and-decompression" title="Linux下常用压缩格式的压缩与解压方法">Linux下常用压缩格式的压缩与解压方法</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.duduyu.net/argument-list-too-long-solution/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux下常用压缩格式的压缩与解压方法</title>
		<link>http://www.duduyu.net/linux-compression-format-commonly-used-under-the-method-of-compression-and-decompression</link>
		<comments>http://www.duduyu.net/linux-compression-format-commonly-used-under-the-method-of-compression-and-decompression#comments</comments>
		<pubDate>Tue, 20 May 2008 03:55:45 +0000</pubDate>
		<dc:creator>嘟嘟鱼</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[压缩]]></category>
		<category><![CDATA[解压]]></category>

		<guid isPermaLink="false">http://www.quickshare.com.cn/?p=10882</guid>
		<description><![CDATA[.tar 解包： tar xvf FileName.tar 打包：tar cvf FileName.tar DirName （注：tar是打包，不是压缩！） --------------------------------------------- .gz 解压1：gunzip FileName.gz 解压2：gzip -d FileName.gz 压缩：gzip FileName .tar.... ]]></description>
			<content:encoded><![CDATA[<p>.tar<br />
解包： tar xvf FileName.tar<br />
打包：tar cvf FileName.tar DirName<br />
（注：tar是打包，不是压缩！）<br />
---------------------------------------------<br />
.gz<br />
解压1：gunzip FileName.gz<br />
解压2：gzip -d FileName.gz<br />
压缩：gzip FileName<br />
.tar.gz<br />
解压：tar zxvf FileName.tar.gz<br />
压缩：tar zcvf FileName.tar.gz DirName<br />
---------------------------------------------<br />
.bz2<br />
解压1：bzip2 -d FileName.bz2<br />
解压2：bunzip2 FileName.bz2<br />
压缩： bzip2 -z FileName<br />
.tar.bz2<br />
解压：tar jxvf FileName.tar.bz2<br />
压缩：tar jcvf FileName.tar.bz2 DirName<br />
---------------------------------------------<br />
.bz<br />
解压1：bzip2 -d FileName.bz<br />
解压2：bunzip2 FileName.bz<br />
压缩：未知<br />
.tar.bz<br />
解压：tar jxvf FileName.tar.bz<br />
压缩：未知<br />
---------------------------------------------<br />
.Z<br />
解压：uncompress FileName.Z<br />
压缩：compress FileName<br />
.tar.Z<br />
解压：tar Zxvf FileName.tar.Z<br />
压缩：tar Zcvf FileName.tar.Z DirName<br />
---------------------------------------------<span id="more-10882"></span><br />
.tgz<br />
解压：tar zxvf FileName.tgz<br />
压缩：未知<br />
.tar.tgz<br />
解压：tar zxvf FileName.tar.tgz<br />
压缩：tar zcvf FileName.tar.tgz FileName<br />
---------------------------------------------<br />
.zip<br />
解压：unzip FileName.zip<br />
压缩：zip FileName.zip DirName<br />
---------------------------------------------<br />
.rar<br />
解压：rar a FileName.rar<br />
压缩：rar e FileName.rar<br />
rar请到：<a href="http://www.rarsoft.com/download.htm">http://www.rarsoft.com/download.htm</a> 下载！<br />
解压后请将rar_static拷贝到/usr/bin目录（其他由$PATH环境变量指定的目录也可以）：<br />
[root@www2 tmp]# cp rar_static /usr/bin/rar<br />
---------------------------------------------<br />
.lha<br />
解压：lha -e FileName.lha<br />
压缩：lha -a FileName.lha FileName</p>
<p>lha请到：<a href="http://www.infor.kanazawa-it.ac.jp/.../lhaunix/">http://www.infor.kanazawa-it.ac.jp/.../lhaunix/</a>下载！<br />
&gt;解压后请将lha拷贝到/usr/bin目录（其他由$PATH环境变量指定的目录也可以）：<br />
[root@www2 tmp]# cp lha /usr/bin/<br />
---------------------------------------------<br />
.rpm<br />
解包：rpm2cpio FileName.rpm | cpio -div<br />
---------------------------------------------<br />
.tar .tgz .tar.gz .tar.Z .tar.bz .tar.bz2 .zip .cpio .rpm .deb .slp .arj .rar .ace .lha .lzh <br />
.lzx .lzs .arc .sda .sfx .lnx .zoo .cab .kar .cpt .pit .sit .sea<br />
解压：sEx x FileName.*<br />
压缩：sEx a FileName.* FileName</p>
<p>sEx只是调用相关程序，本身并无压缩、解压功能，请注意！<br />
sEx请到： <a href="http://sourceforge.net/projects/sex">http://sourceforge.net/projects/sex</a>下载！<br />
解压后请将sEx拷贝到/usr/bin目录（其他由$PATH环境变量指定的目录也可以）：<br />
[root@www2 tmp]# cp sEx /usr/bin/<br />
参考文献：Linux 文件压缩工具指南<br />
（其实看帮助是最好的方法，一般各个命令都可以用“--help”参数得到常用使用方法！）<br />
发布人:会游泳的鱼 来自:LinuxByte</p>
<h3  class="related_post_title">您可能也对这些文章感兴趣</h3><ul class="related_post"><li><a href="http://www.duduyu.net/liblibc-so-6-version-glibc_2-7-not-found" title="linux：/lib/libc.so.6: version `glibc_2.7′ not found">linux：/lib/libc.so.6: version `glibc_2.7′ not found</a></li><li><a href="http://www.duduyu.net/linux-batch-rename-files" title="Linux批量重命名文件">Linux批量重命名文件</a></li><li><a href="http://www.duduyu.net/php-load-linux-under-way-mbstring" title="linux下php加载mbstring的方法">linux下php加载mbstring的方法</a></li><li><a href="http://www.duduyu.net/statistics-document-the-number-of-linux" title="linux 统计文件个数">linux 统计文件个数</a></li><li><a href="http://www.duduyu.net/argument-list-too-long-solution" title="Argument list too long 的解决办法">Argument list too long 的解决办法</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.duduyu.net/linux-compression-format-commonly-used-under-the-method-of-compression-and-decompression/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>“Linux”正确读音！</title>
		<link>http://www.duduyu.net/linux-the-correct-pronunciation</link>
		<comments>http://www.duduyu.net/linux-the-correct-pronunciation#comments</comments>
		<pubDate>Fri, 16 May 2008 13:16:13 +0000</pubDate>
		<dc:creator>嘟嘟鱼</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[读音]]></category>

		<guid isPermaLink="false">http://www.quickshare.com.cn/?p=10877</guid>
		<description><![CDATA[最近发现同事对linux的发音很奇怪，和平时我们发的都不一样，今天他给我发来了这段内容才发现原来我们一直读错了！“linux”的正确读音及音标 ！ ——————————————————... ]]></description>
			<content:encoded><![CDATA[<p>最近发现同事对<a href="http://www.quickshare.com.cn/tag/linux"  class="alinks_links" onclick="return alinks_click(this);" title="linux&#30456;&#20851;&#25991;&#31456;"  rel="external">linux</a>的发音很奇怪，和平时我们发的都不一样，今天他给我发来了这段内容才发现原来我们一直读错了！“linux”的正确读音及音标 ！</p>
<p>———————————————————————————————————<br />
“linux”这个单词根据linus torvalds本人的发音应该是“哩呐克斯”<br />
音标是 ['li:nэks] 重音在“哩”上<br />
———————————————————————————————————</p>
<p>以上结论来自红旗linux技术支持部及一个从事网络安全工作多年的网友<br />
上面是原话，他们答案是一致的当然也是权威的<br />
主要是因为看见linuxsir的几位大侠级别的兄弟把“linux”读错了<br />
并且把错误的读音教给了新来的朋友<br />
所以就想着去问问正确读音<br />
“哩呐克斯”只是根据发音翻译的<br />
请大家按照['li:nэks]这个音标读<br />
<span id="more-10877"></span><br />
———————————————————————————————————<br />
这里还有linus torvalds本人的一段录音：<br />
<a href="http://richardlee.blog.51cto.com/gallery/9729/9729_1346.mp3" target="_blank">http://richardlee/torvalds-says-linux.mp3<br />
</a>录音内容：<br />
“hello,this is linus torvalds and i pr linux as linux”<br />
———————————————————————————————————<br />
大家听听 以前大家认为是怎么读的<br />
听linus torvalds本人的录音时就也听成是什么样的<br />
中国人听老外说话就是有错觉<br />
以后这个问题就算是解决了 不用再问了<br />
以前读错了的大侠、小侠、大鸟、小鸟、菜鸟们都看一下<br />
<a class="hidden" href="http://richardlee.blog.51cto.com/9734/5166">本文出自 51CTO.COM技术博客</a></p>
<h3  class="related_post_title">您可能也对这些文章感兴趣</h3><ul class="related_post"><li><a href="http://www.duduyu.net/liblibc-so-6-version-glibc_2-7-not-found" title="linux：/lib/libc.so.6: version `glibc_2.7′ not found">linux：/lib/libc.so.6: version `glibc_2.7′ not found</a></li><li><a href="http://www.duduyu.net/linux-batch-rename-files" title="Linux批量重命名文件">Linux批量重命名文件</a></li><li><a href="http://www.duduyu.net/php-load-linux-under-way-mbstring" title="linux下php加载mbstring的方法">linux下php加载mbstring的方法</a></li><li><a href="http://www.duduyu.net/statistics-document-the-number-of-linux" title="linux 统计文件个数">linux 统计文件个数</a></li><li><a href="http://www.duduyu.net/argument-list-too-long-solution" title="Argument list too long 的解决办法">Argument list too long 的解决办法</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.duduyu.net/linux-the-correct-pronunciation/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
<enclosure url="http://richardlee.blog.51cto.com/gallery/9729/9729_1346.mp3" length="87193" type="audio/mpeg" />
		</item>
		<item>
		<title>head,tail,sed的用法</title>
		<link>http://www.duduyu.net/head-tail-sed-usage</link>
		<comments>http://www.duduyu.net/head-tail-sed-usage#comments</comments>
		<pubDate>Mon, 05 May 2008 03:18:02 +0000</pubDate>
		<dc:creator>嘟嘟鱼</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[head]]></category>
		<category><![CDATA[sed]]></category>
		<category><![CDATA[tail]]></category>

		<guid isPermaLink="false">http://www.quickshare.com.cn/?p=10858</guid>
		<description><![CDATA[　今天说下linux下查看文件内容的特殊方法 　　相信最基本的cat和less你已经很熟悉了，如果有特殊的要求呢： 　　1. 如果你只想看文件的前5行，可以使用head命令，如： 　　head -5 /etc/passwd 　... ]]></description>
			<content:encoded><![CDATA[<p>　今天说下<a href="http://www.quickshare.com.cn/tag/linux"  class="alinks_links" onclick="return alinks_click(this);" title="linux&#30456;&#20851;&#25991;&#31456;"  rel="external">linux</a>下查看文件内容的特殊方法</p>
<p>　　相信最基本的cat和less你已经很熟悉了，如果有特殊的要求呢：</p>
<p>　　1. 如果你只想看文件的前5行，可以使用head命令，如：</p>
<p>　　head -5 /etc/passwd</p>
<p>　　2. 如果你想查看文件的后10行，可以使用tail命令，如：</p>
<p>　　tail -10 /etc/passwd</p>
<p>　　tail -f /var/log/messages</p>
<p>　　参数-f使tail不停地去读最新的内容，这样有实时监视的效果，当你在ppp拨号的过程中用它岂不是很方便！</p>
<p>　　3. 查看文件中间一段，你可以使用sed命令，如：</p>
<p>　　sed -n '5,10p' /etc/passwd</p>
<p>　　这样你就可以只查看文件的第5行到第10行。<a href="http://doc.linuxpk.com/168.html">本文来自：http://doc.linuxpk.com/168.html</a></p>
<h3  class="related_post_title">您可能也对这些文章感兴趣</h3><ul class="related_post"><li><a href="http://www.duduyu.net/liblibc-so-6-version-glibc_2-7-not-found" title="linux：/lib/libc.so.6: version `glibc_2.7′ not found">linux：/lib/libc.so.6: version `glibc_2.7′ not found</a></li><li><a href="http://www.duduyu.net/linux-batch-rename-files" title="Linux批量重命名文件">Linux批量重命名文件</a></li><li><a href="http://www.duduyu.net/php-load-linux-under-way-mbstring" title="linux下php加载mbstring的方法">linux下php加载mbstring的方法</a></li><li><a href="http://www.duduyu.net/statistics-document-the-number-of-linux" title="linux 统计文件个数">linux 统计文件个数</a></li><li><a href="http://www.duduyu.net/argument-list-too-long-solution" title="Argument list too long 的解决办法">Argument list too long 的解决办法</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.duduyu.net/head-tail-sed-usage/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>linux下RAR的安装和使用</title>
		<link>http://www.duduyu.net/linux-installation-and-use-of-rar</link>
		<comments>http://www.duduyu.net/linux-installation-and-use-of-rar#comments</comments>
		<pubDate>Sun, 04 May 2008 06:43:45 +0000</pubDate>
		<dc:creator>嘟嘟鱼</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[技术]]></category>
		<category><![CDATA[rar]]></category>

		<guid isPermaLink="false">http://www.quickshare.com.cn/?p=10857</guid>
		<description><![CDATA[今天发现有台服务器没装rar，提示：rar: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory 还是hao32给搞定的，问了下方法，原来是因为没装gcc-c++，下面说下... ]]></description>
			<content:encoded><![CDATA[<div>今天发现有台服务器没装rar，提示：rar: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory</div>
<div>还是hao32给搞定的，问了下方法，原来是因为没装gcc-c++，下面说下过程<br />
首先下载rarlinux-3.7.1.tar.gz</div>
<div><a href="http://www.onlinedown.net/soft/3.htm" target="_blank">下载地址</a></div>
<div>2然后解压</div>
<div># tar xvfz    rarlinux-3.7.b1.tar.gz</div>
<div>3安装</div>
<div># <span class="t_tag">make</span> install<br />
mkdir -p /usr/local/bin<br />
mkdir -p /usr/local/lib<br />
cp rar unrar /usr/local/bin<br />
cp rarfiles.lst /etc<br />
cp default.sfx /usr/local/lib<br />
4解压文件：</div>
<p># rar x test.rar /<br />
rar: /lib/tls/libc.so.6: version `GLIBC_2.4' not found (required by rar)</p>
<p>5需要GLIBC_2.4。如果没有GLIBC_2.4可以</p>
<p># cp ./rar/rar_static /usr/local/bin/rar</p>
<p>rar_static 版是 static linking 版本，不会有 glibc 程式库版本不和的问题。</p>
<p>再次解压：<br />
[root@xxxx ~]# rar x test.rar /</p>
<div>RAR 3.71   Copyright (c) 1993-2007 Alexander Roshal   20 Sep 2007<br />
Shareware version         Type RAR -? for help</div>
<div>Extracting from test.rar</div>
<div>Extracting  /test.txt                                                 OK<br />
All OK</div>
<div>6打包</div>
<div>rar a install.rar ./install.log</div>
<div>好了！大功告成：）</div>
<h3  class="related_post_title">您可能也对这些文章感兴趣</h3><ul class="related_post"><li><a href="http://www.duduyu.net/liblibc-so-6-version-glibc_2-7-not-found" title="linux：/lib/libc.so.6: version `glibc_2.7′ not found">linux：/lib/libc.so.6: version `glibc_2.7′ not found</a></li><li><a href="http://www.duduyu.net/linux-batch-rename-files" title="Linux批量重命名文件">Linux批量重命名文件</a></li><li><a href="http://www.duduyu.net/php-load-linux-under-way-mbstring" title="linux下php加载mbstring的方法">linux下php加载mbstring的方法</a></li><li><a href="http://www.duduyu.net/statistics-document-the-number-of-linux" title="linux 统计文件个数">linux 统计文件个数</a></li><li><a href="http://www.duduyu.net/argument-list-too-long-solution" title="Argument list too long 的解决办法">Argument list too long 的解决办法</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.duduyu.net/linux-installation-and-use-of-rar/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MYSQL初学者使用指南</title>
		<link>http://www.duduyu.net/mysql-beginners-guide</link>
		<comments>http://www.duduyu.net/mysql-beginners-guide#comments</comments>
		<pubDate>Sun, 09 Mar 2008 02:29:00 +0000</pubDate>
		<dc:creator>嘟嘟鱼</dc:creator>
				<category><![CDATA[技术]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://www.kuaixiang.net/?p=20</guid>
		<description><![CDATA[试着用一下linux命令行下面操作mysql数据库，有部分命令想不起来了就查了下相关内容，整理了一下。 有很多朋友虽然安装好了mysql但却不知如何使用它。在这篇文章中我们就从连接MYSQL、修改... ]]></description>
			<content:encoded><![CDATA[<p>试着用一下<a href="http://www.quickshare.com.cn/tag/linux"  class="alinks_links" onclick="return alinks_click(this);" title="linux&#30456;&#20851;&#25991;&#31456;"  rel="external">linux</a>命令行下面操作mysql数据库，有部分命令想不起来了就查了下相关内容，整理了一下。<br />
有很多朋友虽然安装好了mysql但却不知如何使用它。在这篇文章中我们就从连接MYSQL、修改密码、增加用户等方面来学习一些MYSQL的常用命令。<br />
一、连接MYSQL。<br />
格式： mysql -h主机地址 -u用户名 －p用户密码<br />
1、例1：连接到本机上的MYSQL。<br />
首先在打开DOS窗口，然后进入目录 mysqlbin，再键入命令mysql -uroot -p，回车后提示你输密码，如果刚安装好MYSQL，超级用户root是没有密码的，故直接回车即可进入到MYSQL中了，MYSQL的提示符是：mysql&gt;<br />
2、例2：连接到远程主机上的MYSQL。假设远程主机的IP为：110.110.110.110，用户名为root,密码为abcd123。则键入以下命令：<span id="more-384"></span><br />
mysql -h110.110.110.110 -uroot -pabcd123<br />
（注:u与root可以不用加空格，其它也一样）<br />
3、退出MYSQL命令： exit （回车）<br />
二、修改密码。<br />
格式：mysqladmin -u用户名 -p旧密码 password 新密码<br />
1、例1：给root加个密码ab12。首先在DOS下进入目录mysqlbin，然后键入以下命令<br />
mysqladmin -uroot -password ab12<br />
注：因为开始时root没有密码，所以-p旧密码一项就可以省略了。<br />
2、例2：再将root的密码改为djg345。<br />
mysqladmin -uroot -pab12 password djg345<br />
三、增加新用户。（注意：和上面不同，下面的因为是MYSQL环境中的命令，所以后面都带一个分号作为命令结束符）<br />
格式：grant select on 数据库.* to 用户名@登录主机 identified by "密码"<br />
例1、增加一个用户test1密码为abc，让他可以在任何主机上登录，并对所有数据库有查询、插入、修改、删除的权限。首先用以root用户连入MYSQL，然后键入以下命令：<br />
grant select,insert,update,delete on *.* to test1@"%" Identified by "abc";<br />
但例1增加的用户是十分危险的，你想如某个人知道test1的密码，那么他就可以在internet上的任何一台电脑上登录你的mysql数据库并对你的数据可以为所欲为了，解决办法见例2。<br />
例2、增加一个用户test2密码为abc,让他只可以在localhost上登录，并可以对数据库mydb进行查询、插入、修改、删除的操作（localhost指本地主机，即MYSQL数据库所在的那台主机），这样用户即使用知道test2的密码，他也无法从internet上直接访问数据库，只能通过MYSQL主机上的web页来访问了。<br />
grant select,insert,update,delete on mydb.* to test2@localhost identified by "abc";<br />
如果你不想test2有密码，可以再打一个命令将密码消掉。<br />
grant select,insert,update,delete on mydb.* to test2@localhost identified by "";</p>
<p>(下篇)<br />
在上篇我们讲了登录、增加用户、密码更改等问题。下篇我们来看看MYSQL中有关数据库方面的操作。注意：你必须首先登录到MYSQL中，以下操作都是在MYSQL的提示符下进行的，而且每个命令以分号结束。</p>
<p>一、操作技巧<br />
1、如果你打命令时，回车后发现忘记加分号，你无须重打一遍命令，只要打个分号回车就可以了。也就是说你可以把一个完整的命令分成几行来打，完后用分号作结束标志就OK。<br />
2、你可以使用光标上下键调出以前的命令。但以前我用过的一个MYSQL旧版本不支持。我现在用的是mysql-3.23.27-beta-win。</p>
<p>二、显示命令<br />
1、显示数据库列表。<br />
show databases;<br />
刚开始时才两个数据库：mysql和test。mysql库很重要它里面有MYSQL的系统信息，我们改密码和新增用户，实际上就是用这个库进行操作。<br />
2、显示库中的数据表：<br />
use mysql； ／／打开库，学过FOXBASE的一定不会陌生吧<br />
show tables;<br />
3、显示数据表的结构：<br />
describe 表名;<br />
4、建库：<br />
create database 库名;<br />
5、建表：<br />
use 库名；<br />
create table 表名 (字段设定列表)；<br />
6、删库和删表:<br />
drop database 库名;<br />
drop table 表名；<br />
7、将表中记录清空：<br />
delete from 表名;<br />
8、显示表中的记录：<br />
select * from 表名;</p>
<p>三、一个建库和建表以及插入数据的实例<br />
drop database if exists school; //如果存在SCHOOL则删除<br />
create database school; //建立库SCHOOL<br />
use school; //打开库SCHOOL<br />
create table teacher //建立表TEACHER<br />
(<br />
id int(3) auto_increment not null primary key,<br />
name char(10) not null,<br />
address varchar(50) default '深圳',<br />
year date<br />
); //建表结束<br />
//以下为插入字段<br />
insert into teacher values('','glchengang','深圳一中','1976-10-10');<br />
insert into teacher values('','jack','深圳一中','1975-12-23');</p>
<p>注：在建表中（1）将ID设为长度为3的数字字段:int(3)并让它每个记录自动加一:auto_increment并不能为空:not null而且让他成为主字段primary key（2）将NAME设为长度为10的字符字段（3）将ADDRESS设为长度50的字符字段，而且缺省值为深圳。varchar和char有什么区别呢，只有等以后的文章再说了。 （4）将YEAR设为日期字段。<br />
如果你在mysql提示符键入上面的命令也可以，但不方便调试。你可以将以上命令原样写入一个文本文件中假设为school.sql，然后复制到c:\下，并在DOS状态进入目录\mysql\bin，然后键入以下命令：<br />
mysql -uroot -p密码 &lt; c:\school.sql<br />
如果成功，空出一行无任何显示；如有错误，会有提示。（以上命令已经调试，你只要将//的注释去掉即可使用）。</p>
<p>四、将文本数据转到数据库中<br />
1、文本数据应符合的格式：字段数据之间用tab键隔开，null值用\n来代替.<br />
例：<br />
3 rose 深圳二中 1976-10-10<br />
4 mike 深圳一中 1975-12-23<br />
2、数据传入命令 load data local infile "文件名" into table 表名;<br />
注意：你最好将文件复制到\mysql\bin目录下，并且要先用use命令打表所在的库 。</p>
<p>五、备份数据库：（命令在DOS的\mysql\bin目录下执行）<br />
mysqldump --opt school&gt;school.bbb<br />
注释:将数据库school备份到school.bbb文件，school.bbb是一个文本文件，文件名任取，打开看看你会有新发现。</p>
<p>后记：其实MYSQL的对数据库的操作与其它的SQL类数据库大同小异，您最好找本将SQL的书看看。我在这里只介绍一些基本的，其实我也就只懂这些了，呵呵。最好的MYSQL教程还是“晏子“译的“MYSQL中文参考手册“不仅免费每个相关网站都有下载，而且它是最权威的。可惜不是象"PHP4中文手册"那样是chm的格式，在查找函数命令的时候不太方便。</p>
<h3  class="related_post_title">您可能也对这些文章感兴趣</h3><ul class="related_post"><li><a href="http://www.duduyu.net/lamp-peizhi-for-centos5" title="L.A.M.P环境配置方法 for CentOS 5.0">L.A.M.P环境配置方法 for CentOS 5.0</a></li><li><a href="http://www.duduyu.net/liblibc-so-6-version-glibc_2-7-not-found" title="linux：/lib/libc.so.6: version `glibc_2.7′ not found">linux：/lib/libc.so.6: version `glibc_2.7′ not found</a></li><li><a href="http://www.duduyu.net/phpmyadmin-how-to-import-large-sql-file" title="phpmyadmin如何导入大的SQL文件">phpmyadmin如何导入大的SQL文件</a></li><li><a href="http://www.duduyu.net/linux-batch-rename-files" title="Linux批量重命名文件">Linux批量重命名文件</a></li><li><a href="http://www.duduyu.net/php-load-linux-under-way-mbstring" title="linux下php加载mbstring的方法">linux下php加载mbstring的方法</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.duduyu.net/mysql-beginners-guide/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

