10 the 'hostname' name display the machine name used currently
11 some good message about crontab how to use :
http://www.chinaunix.net/jh/6/271992.html
http://www.eygle.com/digest/2006/01/hwoto_linux_crontab.html
12 when you tar the package , if you want to use the absolute path , maybe the -P parameter is avaiable , if you want to use relative path , the -C parameter is usful to you
13 how to use awk substr function ?
http://www.lslnet.com/linux/f/docs1/i45/big5313544.htm
14 how to get the lenght of string using shell script? http://www.lslnet.com/linux/dosc1/05/linux-133576.htm
15. when you use the bash shell to develop , if you want to use the or expression , pls remember set the free before ] and after [ character
16 要启动 cron 服务,使用 /sbin/service crond start 命令。要停止该服务,使用 /sbin/service crond stop 命令。推荐你在引导时启动该服务
17. linux ant install and jdk install steps :
set the environment variable vi /etc/profile add some value into the file ,then save ant exit it
then run the terminal such as ' . /etc/profile'
the enviroment variable maybe add such as :
#added for auto deploy 2008-07-31
export ANT_HOME=/usr/local/ant
export JAVA_HOME=/usr/local/jdk1.6
#export JAVA_HOME=/usr/local/jdk1.5
export JAVA_BIN=/usr/local/jdk1.6/bin
export PATH=$PATH:$JAVA_HOME/bin:$ANT_HOME/bin
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
export JAVA_HOME JAVA_BIN PATH CLASSPATH
18 如何用ROOT远程登陆UNIX系统和防御办法
http://doc.linuxpk.com/1068.html
19. how to untar the war package ,you might use the command
unzip *.war -d untar directory
怎样在一个文件中读一个值给变量
http://www.linuxsir.org/bbs/showthread.php?t=34601&highlight=sed
关于过滤指定字段的问题........
http://www.lslnet.com/linux/dosc1/37/linux-272827.htm
20.面向 DBA 的 Linux Shell 脚本简介
http://www.oracle.com/technology/global/cn/pub/articles/saternos_scripting.html
21. how to use the condition in linux shell
通常用" [ ] "来表示条件测试。注意这里的空格很重要。要确保方括号的空格。
[ -f "somefile" ] :判断是否是一个文件
[ -x "/bin/ls" ] :判断/bin/ls是否存在并有可执行权限
[ -n "$var" ] :判断$var变量是否有值
[ "$a" = "$b" ] :判断$a和$b是否相等
22. some data about linux shell variable
http://www.c51bbs.com/c51blog/user1/186/archives/2006/9255.shtml
Shell预定义变量有:
$# 位置参数的数量.
$* 所有位置参数的内容.
$? 命令执行后返回的状态.
$$ 当前进程的进程号.
$! 后台运行的最后一个进程号.
$0 当前执行的进程名.
注意:
$? 用于检查上一个命令执行是否正确. (在Linux中,命令退出
状态为0表示该命令正确执行, 任何非0值表示命令出错.)
$$ 变量最常见的用途是用做暂存文件的名字以保证暂存文件不
23. about awk shell ` usage http://yoyoliyang.blogspot.com/2007/03/linuxshell.html
http://www.61ec.com/jspx_view.asp?id=45(good paper)
利用反引号的这种功能可以进行命令置换,即把反引号括起来的执行结果赋值给指定变量
$ pwd
/home/xyz
$ string=”current directory is `pwd`”
$ echo $string
current directour is /home/xyz
24. linux basic knowledge
http://blog.163.com/jianrong9127@126/blog/static/41981377200772011730238/