<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>Shell - 技术文档</title>
    <link>http://article.phpfans.net</link>
    <description>PHP爱好者,新闻,论坛,问答吧,文档,手册,下载,博客</description>
    <copyright>Copyright(C) PHPfans</copyright>
    <lastBuildDate>Mon, 06 Sep 2010 14:58:13 +0800</lastBuildDate>
    <image>
      <url>http://www.phpfans.net/image/phpfans.logo.gif</url>
      <title>PHP爱好者</title>
      <link>http://www.phpfans.net</link>
    </image>
    <item>
      <title>给SSH的登录设置限制</title>
      <link>http://www.phpfans.net/article/htmls/201009/Mjk5OTI3.html</link>
      <description><![CDATA[http://weijia.blog.51cto.com/616222/119821
SSH的登录限制 1. 
ip限制/etc/hosts.deny/etc/hosts.allow 
比如只限制3个外网,1个内网IP连接
解决办法:
直接在/etc/hosts.deny里面加一行sshd: ALL EXCEPT 
xxx.xxx.xxx.xxx(允许的ip或网段)sshd: ALL EXCEPT...]]></description>
      <category>Shell</category>
      <author>阿笨猫</author>
      <pubDate>Sun, 05 Sep 2010 10:52:00 +0800</pubDate>
    </item>
    <item>
      <title>ssh打通通道自动登录</title>
      <link>http://www.phpfans.net/article/htmls/201009/Mjk5OTI0.html</link>
      <description><![CDATA[ 自动ssh登录的几种方法 1.  自动ssh/scp方法==A为本地主机(即用于控制其他主机的机器) ;B为远程主机(即被控制的机器Server),  假如ip为192.168.60.110;A和B的系统都是Linux在A上运行命令:# ssh-keygen -t rsa  (连续三次回车,即在本地生成了公钥和私钥,不设置密码)# ssh root@192.168.60.110 "mkdir ....]]></description>
      <category>Shell</category>
      <author>阿笨猫</author>
      <pubDate>Sun, 05 Sep 2010 10:33:00 +0800</pubDate>
    </item>
    <item>
      <title>shell视频教学</title>
      <link>http://www.phpfans.net/article/htmls/201009/Mjk5NzEw.html</link>
      <description><![CDATA[

		www.boobooke.com&nbsp;http://www.boobooke.com/bbs/thread-25733-1-1.html
		
		
		
		
		
]]></description>
      <category>Shell</category>
      <author>macroon_cn</author>
      <pubDate>Fri, 03 Sep 2010 11:51:00 +0800</pubDate>
    </item>
    <item>
      <title>SSH命令行上传/下载文件</title>
      <link>http://www.phpfans.net/article/htmls/201009/Mjk5MjE0.html</link>
      <description><![CDATA[上传：scp /path/file（这部分为本地的路径） user（远端目标用户名）@host（远端目标IP）:/pathorfile（文件存储路径）

&nbsp;
下载：scp user（远端用户名）@host（远端IP）:/path/file（下载文件在远端的路径） localpathorfile（本地文件存放路径）
查看目录或文件：ssh user@host command ls "/pa...]]></description>
      <category>Shell</category>
      <author>季枫</author>
      <pubDate>Thu, 02 Sep 2010 23:29:00 +0800</pubDate>
    </item>
    <item>
      <title>ssh cross相关 ssh 权限设置</title>
      <link>http://www.phpfans.net/article/htmls/201009/Mjk4NjY5.html</link>
      <description><![CDATA[windows下翻墙http://blog.greethon.cn/?p=70设置ssh最小使用权限http://xiaod.in/read.php?58]]></description>
      <category>Shell</category>
      <author>lexus</author>
      <pubDate>Wed, 01 Sep 2010 18:05:00 +0800</pubDate>
    </item>
    <item>
      <title>JSSH介绍</title>
      <link>http://www.phpfans.net/article/htmls/201009/Mjk4NTQz.html</link>
      <description><![CDATA[reference:http://www.croczilla.com/bits_and_pieces/jssh/&nbsp;JSSh - a TCP/IP JavaScript Shell Server for MozillaJSSh is a Mozilla C++ extension module that allows other programs (such as telnet) to e...]]></description>
      <category>Shell</category>
      <author>lexus</author>
      <pubDate>Wed, 01 Sep 2010 13:01:00 +0800</pubDate>
    </item>
    <item>
      <title>删除文本中重复的行</title>
      <link>http://www.phpfans.net/article/htmls/201009/Mjk5MzI1.html</link>
      <description><![CDATA[
假设a.txt只有一列，且有重复行
通过以下方式删除重复行：
cat a.txt|awk '{if(!a[$1]) {print $0;a[$1]=1;}}'
]]></description>
      <category>Shell</category>
      <author>liaoaifu85</author>
      <pubDate>Wed, 01 Sep 2010 10:38:00 +0800</pubDate>
    </item>
    <item>
      <title>去掉a文件中含有b文件的列</title>
      <link>http://www.phpfans.net/article/htmls/201009/Mjk5MzIy.html</link>
      <description><![CDATA[
awk 'NR==FNR{a[$1]=1}NR&gt;FNR&amp;&amp;!a[$1]{print}' b a
]]></description>
      <category>Shell</category>
      <author>liaoaifu85</author>
      <pubDate>Wed, 01 Sep 2010 10:34:00 +0800</pubDate>
    </item>
    <item>
      <title>如何比较两个文件是否相同</title>
      <link>http://www.phpfans.net/article/htmls/201009/Mjk5MzE3.html</link>
      <description><![CDATA[
#cat diff_two_file
&nbsp;
#/bin/sbin
file1=/mnt/mmc/test/aa
file2=/mnt/mmc/test/bb
&nbsp;
diff $file1 $file2 &gt; /dev/null
if [ $0&nbsp;== 0&nbsp;]; then
&nbsp;&nbsp;&nbsp; echo "Both file a...]]></description>
      <category>Shell</category>
      <author>owen0725</author>
      <pubDate>Wed, 01 Sep 2010 10:18:00 +0800</pubDate>
    </item>
    <item>
      <title>安装apache+gd2(jpeg,png等)+mysql-client+php脚本</title>
      <link>http://www.phpfans.net/article/htmls/201009/Mjk5MzEw.html</link>
      <description><![CDATA[


more setup.sh
#!/bin/sh#this is a script about *nix installing apache,php with gd2.write by sery(sery@163.com),in 2009-12-03
#define some variableshttp_prefix=/usr/local/apache2php_prefix=/usr/...]]></description>
      <category>Shell</category>
      <author>kennychang05</author>
      <pubDate>Wed, 01 Sep 2010 02:55:00 +0800</pubDate>
    </item>
    <item>
      <title>nrpe自动安装脚本</title>
      <link>http://www.phpfans.net/article/htmls/201009/Mjk5MzA5.html</link>
      <description><![CDATA[


#!/bin/sh#nrpe install script writed by sery([email=sery@163.com),2009-11-23]
Os_is=`uname`Nagios_is=`grep nagios /etc/passwd | wc -l`
if [ "$Os_is" = "Linux" ]then&nbsp;&nbsp;ipadd=$(ifconfig ...]]></description>
      <category>Shell</category>
      <author>kennychang05</author>
      <pubDate>Wed, 01 Sep 2010 02:53:00 +0800</pubDate>
    </item>
    <item>
      <title>EditPlus正则表达式实例</title>
      <link>http://www.phpfans.net/article/htmls/201008/Mjk5Mjg1.html</link>
      <description><![CDATA[
EditPlus3 正则表达式实例一些实例
&nbsp;
【1】 正则表达式应用——替换指定内容到行尾 【2】 正则表达式应用——数字替换【3】 正则表达式应用——删除每一行行尾的指定字符&nbsp; 【4】 正则表达式应用——替换带有半角括号的多行 【5】 正则表达式应用——删除空行&nbsp; 【1】正则表达式应用——替换指定内容到行尾 文本如下 abc aaaaa 123 abc 44...]]></description>
      <category>Shell</category>
      <author>vivieu</author>
      <pubDate>Tue, 31 Aug 2010 20:30:00 +0800</pubDate>
    </item>
    <item>
      <title>命令行工具ADB</title>
      <link>http://www.phpfans.net/article/htmls/201008/Mjk5Mjc0.html</link>
      <description><![CDATA[
命令行工具ADB（Andvoid Debug Bridge）是Android提供的一个通用的调试工具，借助这个工具，我们可以管理设备或手机模拟器的状态。51Testing软件测试网Pr"VVU)wDy#v&nbsp;51Testing软件测试网1r(n9XX*vZbadb help51Testing软件测试网)vt!~)H4C;C$K!S~O&nbsp;51Testing...]]></description>
      <category>Shell</category>
      <author>朱宇华</author>
      <pubDate>Tue, 31 Aug 2010 18:03:00 +0800</pubDate>
    </item>
    <item>
      <title>awk转化字符串为整数</title>
      <link>http://www.phpfans.net/article/htmls/201008/Mjk5Mjcw.html</link>
      <description><![CDATA[
awk 并没有提供字符串转数字的函数，不过awk 的做法很简单：只要加个零到字符串里，例如：s="123" ，接着是n=0+s ，便将数字123 赋值给n 了。 

]]></description>
      <category>Shell</category>
      <author>sss0213</author>
      <pubDate>Tue, 31 Aug 2010 17:36:00 +0800</pubDate>
    </item>
    <item>
      <title>位置变量</title>
      <link>http://www.phpfans.net/article/htmls/201008/Mjk4ODY2.html</link>
      <description><![CDATA[
如果要想一个shell搅拌传递信息，可以使用位置参数完成此功能。参数相关书目传入搅拌，数目可以任意多，但是只有前9个可以被访问（用shift名利可以改变此限制）。$0代表了此脚本名
举例：myadmin@myubuntu:~$ cat position_param #!/bin/bash#position_paramecho "this is the file name:$0"echo "th...]]></description>
      <category>Shell</category>
      <author>sorghum_cu</author>
      <pubDate>Mon, 30 Aug 2010 22:00:00 +0800</pubDate>
    </item>
    <item>
      <title>记录linux操作命令日志</title>
      <link>http://www.phpfans.net/article/htmls/201008/Mjk4Nzg0.html</link>
      <description><![CDATA[
在linux终端下，为方便检查操作中可能出现的错误，以及避免屏幕滚屏的限制，我们可以把操作日志记录下来。常用的工具有screen,script。&nbsp;&nbsp;&nbsp; 1. screen -L&nbsp;&nbsp;&nbsp; &gt; screen -L&nbsp;&nbsp;&nbsp; &gt;这里是我们的操作&nbsp;&nbsp;&nbsp; &gt; exit&nbs...]]></description>
      <category>Shell</category>
      <author>osdba</author>
      <pubDate>Sun, 29 Aug 2010 11:14:00 +0800</pubDate>
    </item>
    <item>
      <title>最牛B的 Linux Shell 命令</title>
      <link>http://www.phpfans.net/article/htmls/201008/Mjk4Nzcw.html</link>
      <description><![CDATA[


一.
1.用你最喜欢的编辑器来敲命令

command &lt;CTRL-x CTRL-e&gt;
在已经敲完的命令后按 &lt;CTRL-x CTRL-e&gt; ，会打开一个你指定的编辑器（比如vim，通过环境变量$EDITOR指定），里面就是你刚输入的命令，然后爱怎么编辑就怎么编辑吧，特别是那些参数异常复杂的程序，比如mencoder/ffmpeg，一个命令动辄3、4行的，...]]></description>
      <category>Shell</category>
      <author>tsyj2007</author>
      <pubDate>Sat, 28 Aug 2010 21:54:00 +0800</pubDate>
    </item>
    <item>
      <title>ShellExecute</title>
      <link>http://www.phpfans.net/article/htmls/201008/Mjk3NzUx.html</link>
      <description><![CDATA[ShellExecute

　　ShellExecute的功能是运行一个外部程序（或者是打开一个已注册的文件、打开一个目录、打印一个文件等等），并对外部程序有一定的控制。
　　有几个API函数都可以实现这些功能，但是在大多数情况下ShellExecute是更多的被使用的，同时它并不是太复杂。
　　ShellExecute函数原型及参数含义如下： 
　　ShellExecute( 
　　HWND h...]]></description>
      <category>Shell</category>
      <author>豪杰的爸爸</author>
      <pubDate>Sat, 28 Aug 2010 21:09:00 +0800</pubDate>
    </item>
    <item>
      <title>bash下. : () {} [] [[]] (())的解释</title>
      <link>http://www.phpfans.net/article/htmls/201008/Mjk4NzY3.html</link>
      <description><![CDATA[
一、.(source)
.（点）与source命令一样，从文件中读取并执行命令，无论该文件是否都有可执行权限都能够正确的执行。且是在当前shell下执行，而
不是产生一个子shell来执行（我们通常使用“./filename.sh”去执行一个文件是在当前shell下产生一个子shell去执行的）。所以
在设置bash的环境的变量时，就必须用该命令或者source命令去执
行设置的环境变量...]]></description>
      <category>Shell</category>
      <author>ymll</author>
      <pubDate>Sat, 28 Aug 2010 18:35:00 +0800</pubDate>
    </item>
    <item>
      <title>备份脚本的部署</title>
      <link>http://www.phpfans.net/article/htmls/201008/Mjk4NzM4.html</link>
      <description><![CDATA[
早上发现，昨晚部署的mysql增量备份脚本，有3台没有备份成功，于是打开脚本文件看了一下，发现少了一句话。。。赶紧补上，测试一下ok了。
以后大量部署脚本，一定要把各个服务器的路径记录下来，然后统一修改脚本，这样每台机子的脚本才能一致性。不至于忘东忘西的。
等脚本完善后传到博客上。



]]></description>
      <category>Shell</category>
      <author>bingqihan</author>
      <pubDate>Fri, 27 Aug 2010 10:57:00 +0800</pubDate>
    </item>
  </channel>
</rss>