1 shell 的$! ,$?, $$,$@$n $1 the first parameter,$2 the second...$# The number of command-line parameters.$0 The name of current program.$? ...
分类:
其他好文 时间:
2014-10-09 01:07:27
阅读次数:
266
#!/bin/sh#根据输入的数字进行正负数判断。path=/bin:/sbin:/usr/bin/:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/binexportPATHecho"请输入数字\n"readshuziif[$shuzi-ge0];thenecho"您输入的是正数"elseecho"您输入的是负数"fi注意事项:1、if的格式,中括号中是这样的:[..
分类:
其他好文 时间:
2014-10-08 16:26:15
阅读次数:
137
最近学习RHCE,在umask这里,书里说要修改/etc/profile和/etc/bashrc两个文件,却没有说明这两个区别。于是在上网查看之后倒是明白了各是怎么用的。/etc/profile是对应登录的,/etc/bashrc是对应打开shell的。但是实际使用区别在哪,如果说bashrc是对应...
分类:
系统相关 时间:
2014-10-08 16:14:35
阅读次数:
182
在很多的shell脚本中,我们经常会看见某一句命令的前面有一句“LC_ALL=C”SAR_CMD="LC_ALL=C sar -u -b 1 5 | grep -i average "这到底是什么意思?LC_ALL=C 是为了去除所有本地化的设置,让命令能正确执行。-----------------...
分类:
其他好文 时间:
2014-10-08 13:21:35
阅读次数:
183
相关工具下载:http://pan.baidu.com/s/1kTkOicn首先你要有eclipse工具,android:adb shell:进入交互shell ./uiautomatorviewer:查看坐标破解app步骤:1,使用apktool,解包后可以修改apk内部结构。apkto...
分类:
移动开发 时间:
2014-10-08 12:46:05
阅读次数:
533
10月8号第一天上班不在状态r和e不小心按错了cat/var/log/cron在日志里查找[root@redunbak~]#grep/root/shell/mysql_bak_prod.sh/var/log/cron可以备份一份防止删除cp/var/spool/cron/root{,.bak}
分类:
其他好文 时间:
2014-10-08 12:37:56
阅读次数:
354