PHP
·
发表于 5年以前
·
阅读量:8296
#!/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