2 篇文章
介绍用 command、type、hash 三种方式判断命令是否存在,并解释重定向和 /dev/null 的用法。
整理 Bash 中 if 条件判断常用参数,涵盖文件测试、字符串比较、数值比较等。