摘要:
http://blog.csdn.net/chenhanzhun/article/details/44133789http://coolshell.cn/articles/9070.html http://coolshell.cn/articles/9104.html... 阅读全文
posted @ 2015-07-05 21:21
大海星
阅读(693)
评论(0)
推荐(0)
摘要:
检查语法-n选项只做语法检查,而不执行脚本。sh -n script_name.sh启动调试sh -x script_name.sh#这里也可以在脚本中指定开启。如可以在script_name.sh中的这样一句:set -x进入调试模式后,Shell依次执行读入的语句... 阅读全文
posted @ 2015-07-05 20:48
大海星
阅读(144)
评论(0)
推荐(0)
摘要:
#!/bin/bash func_1() { echo $1 } str="jeguan hello" //注意引号在这里的作用 func_1 "$str" echo "please pay attention to t... 阅读全文
posted @ 2015-07-05 13:26
大海星
阅读(405)
评论(0)
推荐(1)
摘要:
1 #!/bin/bash 2 3 . subshell-test.sh 4 5 echo "test.sh" 6 echo 7 echo 8 echo $$ 9 echo "\$! = $!" test.sh 1 #!/bin/bas... 阅读全文
posted @ 2015-07-05 10:10
大海星
阅读(157)
评论(0)
推荐(0)
摘要:
ps -ef 和ps -aux之间的区别ps a 显示现行终端机下的所有程序,包括其他用户的程序ps u 以用户为主的格式来显示程序状况ps x 显示所有程序,不以终端机来区分ps e 列出程序时,显示每个程序所使用的环境变量ps f 用ASCII字符显示树状结构,表... 阅读全文
posted @ 2015-07-05 09:45
大海星
阅读(229)
评论(0)
推荐(0)

浙公网安备 33010602011771号