2018年7月26日
摘要: 不需要另外定义第三个变量就可以对换 阅读全文
posted @ 2018-07-26 20:14 圆缘 阅读(257) 评论(0) 推荐(0) 编辑
摘要: 30 40 黑色 31 41 红色 32 42 绿色 33 43 黄色 34 44 蓝色 35 45 紫色 36 46 青色 37 47 白色 let COLOR=RANDOM%8+30;echo e "\e[${COLOR}mcolor\e[0m" let COLOR=$RANDOM%8+30;e 阅读全文
posted @ 2018-07-26 16:37 圆缘 阅读(225) 评论(0) 推荐(0) 编辑
摘要: 1、将/etc/issue文件中的内容转换为大写后保存至/tmp/issue.out文件中 1.cat /etc/issue |tr a z A Z /tmp/issue.out 2.tr a z A Z /tmp/issue.out 2、将当前系统登录用户的信息转换为大写后保存至/tmp/who. 阅读全文
posted @ 2018-07-26 11:18 圆缘 阅读(205) 评论(0) 推荐(0) 编辑
摘要: tee:重定向到多个目标 命令1 | tee [ a ] 文件名 | 命令2 把命令1的STDOUT保存在文件中,做为命令2的输入 a 追加  使用:  保存不同阶段的输出  复杂管道的故障排除  同时查看和记录输出 阅读全文
posted @ 2018-07-26 11:13 圆缘 阅读(297) 评论(0) 推荐(0) 编辑
摘要: ![](https://images2018.cnblogs.com/blog/1435959/201807/1435959-20180726110202043-1665982200.png) ![](https://images2018.cnblogs.com/blog/1435959/201807/1435959-20180726110213370-4693210.png) 阅读全文
posted @ 2018-07-26 11:03 圆缘 阅读(2294) 评论(0) 推荐(0) 编辑
摘要: 先用" "将文件清零 然后用"rm"删除 阅读全文
posted @ 2018-07-26 10:51 圆缘 阅读(376) 评论(0) 推荐(0) 编辑
摘要: 一般需要有后缀等描述 rename "更改前标识" “更改后标识” 需要更改描述 阅读全文
posted @ 2018-07-26 10:48 圆缘 阅读(200) 评论(0) 推荐(0) 编辑
摘要: 第1种:echo {1..100}|tr ' ' +|bc 第2种:seq s + 100|bc 阅读全文
posted @ 2018-07-26 10:39 圆缘 阅读(159) 评论(0) 推荐(0) 编辑
摘要: https://www.jianshu.com/c/ecab0f538c51 阅读全文
posted @ 2018-07-26 10:29 圆缘 阅读(209) 评论(0) 推荐(0) 编辑
摘要: ![](https://images2018.cnblogs.com/blog/1435959/201807/1435959-20180726102647197-1340648270.png) 阅读全文
posted @ 2018-07-26 10:27 圆缘 阅读(590) 评论(0) 推荐(0) 编辑
摘要: 第1和第2 第3 https://www.cnblogs.com/lqynkdcwy/p/9368259.html 阅读全文
posted @ 2018-07-26 10:17 圆缘 阅读(541) 评论(0) 推荐(0) 编辑
摘要: ![](https://images2018.cnblogs.com/blog/1435959/201807/1435959-20180726100403778-756103005.png) 阅读全文
posted @ 2018-07-26 10:04 圆缘 阅读(745) 评论(0) 推荐(0) 编辑
摘要: ![](https://images2018.cnblogs.com/blog/1435959/201807/1435959-20180726095723868-520187413.png) 阅读全文
posted @ 2018-07-26 09:58 圆缘 阅读(311) 评论(0) 推荐(0) 编辑
摘要: 查看进程:ps aux 文件描述符:fd{PID(进程号)} 得出进程号后,可以进入/proc,找出对应的PID目录 cd /proc cd /PID cd /fd 阅读全文
posted @ 2018-07-26 09:55 圆缘 阅读(1328) 评论(0) 推荐(0) 编辑

返顶部