linux判别目录是否存在
导语:1.运用`test`指令(`;thenechoDirectoryexistselseechoDirectorydoesnotexistfi```2.运用`bash`的`d`选项:```bashi...
1. 运用 `test` 指令(`; then echo Directory existselse echo Directory does not existfi```
2. 运用 `bash` 的 `d` 选项:```bashif ; then echo Directory existselse echo Directory does not existfi```
3. 运用 `bash` 的 `qwe2; then echo Directory existselse echo Directory does not existfi```
4. 运用 `find` 指令:```bashif find /path/to/directory > /dev/null 2>
免责申明:以上内容属作者个人观点,版权归原作者所有,如有侵权或内容不符,请联系我们处理,谢谢合作!