0

shell基础十二篇_学习笔记_4_crontab_at_nohup


crontab
我是这样强制记住的:
分钟 时间 日期 月份 星期
简称:分时日月星

&
放入后台运行程序,不占据前端界面,暂时没用到..

at 用过crontab,但是没用过at …

nohup
以前在公司用过,但是nohup会产生一个bohup.out的文件,并且这个文件的体积会越来越大,相同的功能有screen可以选择,
screen也是很强大的工具.

“[" 与 "]” 左方括号 与 右方括号
ls [ab].*
列出 a或b开头的文件 a.aa 或 b.bb
aa.a 或 aa.b 则是 ls [ab]*

“!” 感叹号
ls [!ab]* 列入非ab开头的文件
ls [!ab].* 则是非a或b开头的文件,例如 d.a

“?” 问号
“?” 问号匹配单个字
ls ?.aa 列出单个字符.aa的文件,例如 a.aa b.aa或c.aa
ls ?.[ab][ab] 则是单个字符.a与b结尾的文件,例如:
x.aa x.ab x.ba x.bb x.ba

我猜~这些文章你可能也感兴趣

暂时没有留言..

给我留言:

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word