慕妹3242003
#!/bin/bash if [ -d $1 ]then echo "$1 is a directory." exitelif [ -f $1 ]then echo -n "$1 is a file, " if [ -L $1 ] then echo "and it is also a symbolic link." A=`ls -L $1` if [ -e $A ] then echo "Symbolic link exist." else echo "Symbolic link not exist." fi exit else echo "but it is not a symbolic link." exit fifi