- 论坛徽章:
- 381
|
回复 10# zsc_qing
正解,看这个
[root@rhel5 ~]#cd /home/chenyx
[root@rhel5 /home/chenyx]#ll
总计 0
[root@rhel5 /home/chenyx]#mkdir testing
[root@rhel5 /home/chenyx]#ll
总计 4.0K
drwxr-xr-x 2 root root 4.0K 06-20 08:27 testing
[root@rhel5 /home/chenyx]#chmod 747 testing/
[root@rhel5 /home/chenyx]#ll
总计 4.0K
drwxr--rwx 2 root root 4.0K 06-20 08:27 testing
[root@rhel5 /home/chenyx]#cd testing/
[root@rhel5 /home/chenyx/testing]#touch abc
[root@rhel5 /home/chenyx/testing]#touch a b c
[root@rhel5 /home/chenyx/testing]#ll
总计 0
-rw-r--r-- 1 root root 0 06-20 08:27 a
-rw-r--r-- 1 root root 0 06-20 08:27 abc
-rw-r--r-- 1 root root 0 06-20 08:27 b
-rw-r--r-- 1 root root 0 06-20 08:27 c
[root@rhel5 /home/chenyx/testing]#cd ..
[root@rhel5 /home/chenyx]#su - chenyx
[chenyx@rhel5 ~]$ ll
总计 4.0K
drwxr--rwx 2 root root 4.0K 06-20 08:27 testing
[chenyx@rhel5 ~]$ rmdir testing/
rmdir: testing/: 目录非空
[chenyx@rhel5 ~]$ rm -fr testing/
[chenyx@rhel5 ~]$ ll
总计 0 |
|