C'est vrai, mais rm a l'air d'avoir une protection :
Code:
root @ nas: ~/ducon 11 # ll -a
total 12
drwxr-xr-x. 2 root root 141 Feb 11 19:14 ./
dr-xr-x---. 68 root root 8192 Feb 11 19:13 ../
-rw-r--r--. 1 root root 0 Feb 11 18:16 .file1
-rw-r--r--. 1 root root 0 Feb 11 19:14 file1
-rw-r--r--. 1 root root 0 Feb 11 18:16 .file2
-rw-r--r--. 1 root root 0 Feb 11 19:14 file2
-rw-r--r--. 1 root root 0 Feb 11 18:16 .file3
-rw-r--r--. 1 root root 0 Feb 11 19:14 file3
-rw-r--r--. 1 root root 0 Feb 11 18:16 .file4
-rw-r--r--. 1 root root 0 Feb 11 19:14 file4
-rw-r--r--. 1 root root 0 Feb 11 18:16 .file5
-rw-r--r--. 1 root root 0 Feb 11 19:14 file5
root @ nas: ~/ducon 12 # rm -rf *.*
root @ nas: ~/ducon 13 # ll -a
total 12
drwxr-xr-x. 2 root root 141 Feb 11 19:14 ./
dr-xr-x---. 68 root root 8192 Feb 11 19:13 ../
-rw-r--r--. 1 root root 0 Feb 11 18:16 .file1
-rw-r--r--. 1 root root 0 Feb 11 19:14 file1
-rw-r--r--. 1 root root 0 Feb 11 18:16 .file2
-rw-r--r--. 1 root root 0 Feb 11 19:14 file2
-rw-r--r--. 1 root root 0 Feb 11 18:16 .file3
-rw-r--r--. 1 root root 0 Feb 11 19:14 file3
-rw-r--r--. 1 root root 0 Feb 11 18:16 .file4
-rw-r--r--. 1 root root 0 Feb 11 19:14 file4
-rw-r--r--. 1 root root 0 Feb 11 18:16 .file5
-rw-r--r--. 1 root root 0 Feb 11 19:14 file5
root @ nas: ~/ducon 14 # rm -rf * .*
rm: refusing to remove '.' or '..' directory: skipping '.'
rm: refusing to remove '.' or '..' directory: skipping '..'
root @ nas: ~/ducon 15 # ll
total 0
Code:
root @ nas: ~/ducon 22 # ls -la
total 12
drwxr-xr-x. 2 root root 141 Feb 11 19:19 ./
dr-xr-x---. 68 root root 8192 Feb 11 19:19 ../
-rw-r--r--. 1 root root 0 Feb 11 19:19 .file1
-rw-r--r--. 1 root root 0 Feb 11 19:19 file1
-rw-r--r--. 1 root root 0 Feb 11 19:19 .file2
-rw-r--r--. 1 root root 0 Feb 11 19:19 file2
-rw-r--r--. 1 root root 0 Feb 11 19:19 .file3
-rw-r--r--. 1 root root 0 Feb 11 19:19 file3
-rw-r--r--. 1 root root 0 Feb 11 19:19 .file4
-rw-r--r--. 1 root root 0 Feb 11 19:19 file4
-rw-r--r--. 1 root root 0 Feb 11 19:19 .file5
-rw-r--r--. 1 root root 0 Feb 11 19:19 file5
root @ nas: ~/ducon 23 # rm -i *.*
rm: cannot remove '*.*': No such file or directory