Humour: Funny Behaviour of rm Command

1
2
3
4
5
6
7
8
9
10
11
12
13
14
[root@localhost pub]# ll
total 1648
-rw-r--r--  1 root root  85648 Jun  5 23:52 14thtop.png
-rw-r--r--  1 root root 262852 Jun  5 23:52 orkuthelper.png
-rw-r--r--  1 root root 143804 Jun  5 23:52 shot1.png
-rw-r--r--  1 root root 160552 Jun  5 23:52 shot2.png
-rw-r--r--  1 root root 159934 Jun  5 23:52 shot3.png
-rw-r--r--  1 root root 141849 Jun  5 23:52 shot4.png
lrwxrwxrwx  1 root root      9 Jun  4 18:44 windows -> /windows/
[root@localhost pub]# rmdir windows/
rmdir: 'windows/': Not a directory
[root@localhost pub]# rm windows/
rm: cannot remove directory 'windows/': Is a directory
[root@localhost pub]#

can you just tell me how to remove this directory? plz… urgent help required …

 

4 thoughts on “Humour: Funny Behaviour of rm Command

  1. If you want to delete only the soft link and not the target directory, do this
    rm -f windows
    Dont put the ‘/’ after ‘windows’

    If you want to delete the target directory then change to ‘/’ and delete it normally.

    Try this — ‘file windows’ and ‘file windows/’

  2. @Rockingatul
    It would be very kind of you if you would not tell that method to anyone else in your lifetime becuase people may kill you. If I might have tried that command, I would have lost my 120GB of data.

Comments are closed.