if判断常用命令选项帮助

if判断如何判断一个文件是不是目录if [ -d /tmp/  ];then    echo ok.eles    echo failed.    fi&n...