[root@localhost ado]# ll
总计 147928
-rwxr-xr-x 1 root root 6034852 04-15 21:25 apache-tomcat-5.5.25.tar.gz
drwxr-xr-x 18 root root 4096 04-18 10:10 bbs
-rw-r–r– 1 root root 122753517 04-16 18:17 mysql-5.1.45-linux-i686-glibc23.tar.gz
-rw-r–r– 1 root root 7236019 04-16 19:52 MySQL-client-5.1.45-1.glibc23.i386.rpm
-rw-r–r– 1 root root 1189 04-17 16:42 mysqlinstall.txt
-rw-r–r– 1 root root 15237056 04-16 19:53 MySQL-server-5.1.45-1.glibc23.i386.rpm
drwxr-xr-x 2 root root 4096 04-18 13:20 test
drwxr-xr-x 20 root root 4096 04-15 21:30 wwwroot
[root@localhost ado]# ln -s test dd
[root@localhost ado]# ll
总计 147928
-rwxr-xr-x 1 root root 6034852 04-15 21:25 apache-tomcat-5.5.25.tar.gz
drwxr-xr-x 18 root root 4096 04-18 10:10 bbs
lrwxrwxrwx 1 root root 4 04-18 13:21 dd -> test
-rw-r–r– 1 root root 122753517 04-16 18:17 mysql-5.1.45-linux-i686-glibc23.tar.gz
-rw-r–r– 1 root root 7236019 04-16 19:52 MySQL-client-5.1.45-1.glibc23.i386.rpm
-rw-r–r– 1 root root 1189 04-17 16:42 mysqlinstall.txt
-rw-r–r– 1 root root 15237056 04-16 19:53 MySQL-server-5.1.45-1.glibc23.i386.rpm
drwxr-xr-x 2 root root 4096 04-18 13:20 test
drwxr-xr-x 20 root root 4096 04-15 21:30 wwwroot
[root@localhost ado]# rm -f dd/
rm: 无法删除 “dd/”: 不是目录
[root@localhost ado]# rm -f dd –删除成功
注意:如果自动补齐目录后的”/”就删除不了