I use an alias to prevent me from accidentally deleting files, and I would like to do something similar for directories. For files, I have the following added to my .bashrc: alias rm="rm -i" I ...
I am using CentOS Release 6.4(Final), with Kernel Linux 2.6.32-358.11.1.el6.x86_64, and GNOME 2.82.2. I have enabled “Always open in browser” option in the File management preferences. I have a ...
I am unable to delete a directory even as root. The command rm -rf kdyiyv.pif returns nothing. Then I tried the command, touch kdyiyv.pif for which there was an error: touch: setting times of ...
I tried "chattr +i DIRNAME", it's great, but I cannot create files in the DIR after chattr. What else are there to prevent users from deleting a Directory? root@HOST ~] mkdir test [root@HOST ~] ...
I was playing around with zip and accidentally deleted my /home/ folder (i wanted to delete home/ which got created by unzipping an archive). I used rm -r /home/instead of rm -r home/ as root... Is ...