检查目录

4年以前  |  阅读数:371 次  |  编程语言:Shell 
#!/bin/bash
# look before you leap

if [ -d $HOME ]
then
    echo "Your home directory exists"
    cd $HOME
    ls -a
else
    echo "There is a problem with your HOME direcotry"
fi

Copyright© 2013-2020

All Rights Reserved 京ICP备2023019179号-8