2012年8月15日

摘要: Performance vs. load vs. stress testingHere's a good interview question for a tester: how do you define performance/load/stress testing? Many times people use these terms interchangeably, but they have in fact quite different meanings. This post is a quick review of these concepts, based on 阅读全文
posted @ 2012-08-15 22:44 hunter_gio 阅读(158) 评论(0) 推荐(0) 编辑
摘要: test命令用法。功能:检查文件和比较值1)判断表达式iftest(表达式为真)iftest!表达式为假test表达式1–a表达式2两个表达式都为真test表达式1–o表达式2两个表达式有一个为真2)判断字符串test–n字符串字符串的长度非零test–z字符串字符串的长度为零test字符串1=字符串2字符串相等test字符串1!=字符串2字符串不等3)判断整数test整数1–eq整数2整数相等test整数1–ge整数2整数1大于等于整数2test整数1–gt整数2整数1大于整数2test整数1–le整数2整数1小于等于整数2test整数1–lt整数2整数1小于整数2test整数1–ne整数2 阅读全文
posted @ 2012-08-15 14:19 hunter_gio 阅读(236) 评论(0) 推荐(0) 编辑
摘要: linux中shell变量$#,$@,$0,$1,$2的含义解释:变量说明:$$Shell本身的PID(ProcessID)$!Shell最后运行的后台Process的PID$?最后运行的命令的结束代码(返回值)$-使用Set命令设定的Flag一览$*所有参数列表。如"$*"用「"」括起来的情况、以"$1 $2 … $n"的形式输出所有参数。$@所有参数列表。如"$@"用「"」括起来的情况、以"$1" "$2" … "$n" 的形式输出所有参数。$#添加到 阅读全文
posted @ 2012-08-15 12:41 hunter_gio 阅读(156) 评论(0) 推荐(0) 编辑
摘要: The basename utility is used toRemove any prefix ending in /.Remove the suffix from a string.Syntax of basename command:basename [string] [suffix]Here 'string' is theinput string and suffixis the stringwhich needs to removed from the input string.Examples:1.basename /usr/bin/perlscriptThis w 阅读全文
posted @ 2012-08-15 12:40 hunter_gio 阅读(126) 评论(0) 推荐(0) 编辑
摘要: From:http://www.davidpashley.com/articles/writing-robust-shell-scripts.htmlMany people hack together shell scripts quickly to do simple tasks, but these soon take on a life of their own. Unfortunately shell scripts are full of subtle effects which result in scripts failing in unusual ways. It's 阅读全文
posted @ 2012-08-15 11:54 hunter_gio 阅读(150) 评论(0) 推荐(0) 编辑
摘要: linux中shell变量$#,$@,$0,$1,$2的含义解释:变量说明:$$Shell本身的PID(ProcessID)$!Shell最后运行的后台Process的PID$?最后运行的命令的结束代码(返回值)$-使用Set命令设定的Flag一览$*所有参数列表。如"$*"用「"」括起来的情况、以"$1 $2 … $n"的形式输出所有参数。$@所有参数列表。如"$@"用「"」括起来的情况、以"$1" "$2" … "$n" 的形式输出所有参数。$#添加到 阅读全文
posted @ 2012-08-15 11:45 hunter_gio 阅读(411) 评论(0) 推荐(0) 编辑

导航