2015年2月3日
摘要: http://www.doc88.com/p-774449406527.html 阅读全文
posted @ 2015-02-03 14:48 寒星12345678999 阅读(473) 评论(0) 推荐(0) 编辑
摘要: http://www.linuxidc.com/Linux/2014-12/110463.htm#!/bin/bash#定义颜色的变量RED_COLOR='\E[1;31m' #红GREEN_COLOR='\E[1;32m' #绿YELOW_COLOR='\E[1;33m' #黄BLUE_COLOR... 阅读全文
posted @ 2015-02-03 14:00 寒星12345678999 阅读(266) 评论(0) 推荐(0) 编辑
摘要: 按任意键继续任意脚本代码:any.sh[root@localhost ~]# cat insert.sh #!/bin/bashget_char(){SAVEDSTTY=`stty -g`stty -echostty cbreakdd if=/dev/tty bs=1 count=1 2> /dev... 阅读全文
posted @ 2015-02-03 13:51 寒星12345678999 阅读(200) 评论(0) 推荐(0) 编辑
摘要: http://zhaochj.blog.51cto.com/368705/1609777 阅读全文
posted @ 2015-02-03 13:41 寒星12345678999 阅读(179) 评论(0) 推荐(0) 编辑
摘要: sudo权限问题考察一题 su - sudo su - sudo su - test[root@localhost ~]# su - zzx #root用户进行切换不需要输入密码[zzx@localhost ~]$ su - zzy #这时需要输入zzy的密码[zzy@localhost ~]$... 阅读全文
posted @ 2015-02-03 10:49 寒星12345678999 阅读(524) 评论(0) 推荐(0) 编辑
摘要: 2007-12-13 07:51:40标签:实例程序Shell休闲职场Shell程序实例集锦一前言:下面这些hell实例都是自己写的或者用过的一些Shell小程序。整理整理。 ——Ajian1、删除B文件中和A文件相同的内容#!/bin/sh# Ajianfor file in `cat a.li... 阅读全文
posted @ 2015-02-03 09:26 寒星12345678999 阅读(237) 评论(0) 推荐(0) 编辑