07 2018 档案

摘要:经常用到的2个重定向 $ echo 'hello shiyanlou' > redirect $ echo 'www.shiyanlou.com' >> redirect Linux 默认提供了三个特殊设备,用于终端的显示和输出,分别为stdin(标准输入,对应于你在终端的输入),stdout(标准 阅读全文
posted @ 2018-07-31 14:55 myself_think 阅读(158) 评论(0) 推荐(0)
摘要:1.tr -d 删除和set1匹配的字符,注意不是全词匹配也不是按字符顺序匹配-s 去除set1指定的在输入文本中连续并重复的字符 # 删除 "hello shiyanlou" 中所有的'o','l','h'$ echo 'hello shiyanlou' | tr -d 'olh'# 将"hell 阅读全文
posted @ 2018-07-26 19:38 myself_think 阅读(177) 评论(0) 推荐(0)
摘要:1.顺序执行 yum install tools;yum install tools1;yum install tools2; 2.有选择的执行 which cowsay>/dev/null && cowsay -f head-in pppppp 上面的&&就是用来实现选择性执行的,它表示如果前面的 阅读全文
posted @ 2018-07-26 18:22 myself_think 阅读(130) 评论(0) 推荐(0)
摘要:(1)at命令 假如我们只是想要让特定任务运行一次,那么,这时候就要用到at监控程序了。 注意:一定要检查一下atq的服务是否启 动,有些操作系统未必是默认启动的,linux默认为不启动,而ubuntu默认为启动的。检查是否启动,用service atd检查语法,用service atd statu 阅读全文
posted @ 2018-07-26 14:45 myself_think 阅读(180) 评论(0) 推荐(0)
摘要:1.目录结构 2.shell 通配符 字符 含义* 匹配 0 或多个字符? 匹配任意一个字符[list] 匹配 list 中的任意单一字符[^list] 匹配 除list 中的任意单一字符以外的字符[c1-c2] 匹配 c1-c2 中的任意单一字符 如:[0-9] [a-z]{string1,str 阅读全文
posted @ 2018-07-26 13:34 myself_think 阅读(110) 评论(0) 推荐(0)