Hi,
As per the slide in "4-4 File and Directory Deletion" ,
rm new.txt , must ask for confirmation
rm: remove regular empty file `new.txt'? yes
then it would delete.
Same case is with
rm -r foo , must ask for confirmation
rm:descend into directory `foo'?
But this is not happening when I try to run rm command.
First I created a fresh empty file new.txt using vi command in my home directory and give command on Xterm
rm new.txt
then it didn't ask the question to whether remove regular empty file or not.
Second I created a new directory foo using mkdir command and then cd to move into the directory then I created a few non-empty files inside foo
and give command on xterm
rm -r foo
then it doesn't ask the question to descend into directory `foo' or not.
Regards
Anon10020