![]() |
![]() |
EnderUNIX tipsMail to My Friend , Home Page[ Console ] "Protect The root directory at all cost" - Ülkü SAYILAN - (2004-09-16 15:53:06) [4405] Here is a little extra guard that can be taken if anyone attempts, or accidentally recursively removes files inside a directory. If and when it occurs, the person will constantly be prompted with the question"are you sure?" Here is how it works in a safe area: % cd /usr/tmp % mkdir foo % touch /usr/tmp/foo/\-i % chmod 000 /usr/tmp/foo/\-i NOTE: Use the fully qualified path to create the file when creating. % cd foo % touch fee fii foo fum % rm -rf * Mail to My Friend , Home Page |
|