摘要: #!/bin/bash #source /etc/profile# Auth:Liucx# Please change these parameters according to your real env.# set Java Home: Remember that dolphin only su 阅读全文
posted @ 2021-02-24 19:55 GaoYanbing 阅读(367) 评论(0) 推荐(0) 编辑
摘要: 前言 相信大家经常能在shell脚本中发现>/dev/null 2>&1这样的语句。以前的我并没有去深入地理解这段命令的作用,照搬照用,直到上周我将这段命令不小心写成了2>&1 >/dev/null,出了一点小问题之后,我才开始去了解这段命令背后的“玄机”。 shell重定向介绍 就像我们平时写的程 阅读全文
posted @ 2021-02-24 16:14 GaoYanbing 阅读(170) 评论(0) 推荐(0) 编辑