
shell
文章平均质量分 62
youngqj
因为喜欢,所以选择!
展开
-
shell学习笔记之if参数
-b 当file存在并且是块文件时返回真 -c 当file存在并且是字符文件时返回真 -d 当pathname存在并且是一个目录时返回真 -e 当pathname指定的文件或目录存在时返回真 -f 当file存在并且是正规文件时返回真 -g 当由pathname指定的文件或目录存在并且设置了SGID位时返回为真 -h 当file存在并且是原创 2012-02-13 16:15:30 · 614 阅读 · 0 评论 -
HowToUseSNMPAgentExtension
Introduction SNMP can help us to grab useful hardware and software information from a given device.In some cases it would be useful to query more data than what is provided by the MIB files. A commo翻译 2012-03-01 17:50:45 · 922 阅读 · 0 评论 -
用shell将时间字符串与时间戳互转
在shell中,字符串转换为时间戳可以这样做: date -d "2010-10-18 00:00:00" +%s 输出形如: 1287331200 其中,-d参数表示显示指定的字符串所表示的时间,+%s表示输出时间戳。 而时间戳转换为字符串可以这样做: date -d @1287331200 输出...原创 2011-08-16 14:07:30 · 1332 阅读 · 0 评论 -
Linux下crontab的使用
1.作用 使用crontab命令可以修改crontab配置文件,然后该配置由cron公用程序在适当的时间执行,该命令使用权限是所有用户。 2.格式 crontab [-u user] {-l | -r | -e} 3.主要参数 -e:执行文字编辑器来设定时程表,内空的文字编辑器是vi -r:删除目前的时程表 -l列出目前的时程表。 Crontab文件的格式为”M H D m d c...原创 2011-09-15 23:17:09 · 848 阅读 · 0 评论