rm command not ask before delete

Posted by apis17 on Server Fault See other posts from Server Fault or by apis17
Published on 2012-03-25T08:42:47Z Indexed on 2012/03/25 11:32 UTC
Read the original article Hit count: 283

Filed under:
|
|

i have centos VPS created using XEN + OpenVZ virtualization.

-bash-3.2# uname -a
Linux host.domain.com 2.6.18-274.7.1.el5.028stab095.1xen #1 SMP Mon Oct 24 22:10:04 MSD 2011 i686 i686 i386 GNU/Linux

there are no question asked when i want to delete file(s)

-bash-3.2# vi test.txt
-bash-3.2# rm test.txt
-bash-3.2#

the main server (not virtualized one) is asking me first before delete any files.

[root@main ~]# vi test.txt
[root@main ~]# rm test.txt
rm: remove regular file `test.txt'? y
[root@main ~]#

how to configure virtualized environment to prompt me before deleting any file(s)?

thank you.

© Server Fault or respective owner

Related posts about vps

Related posts about centos5