Jump to content
Science Forums

Rm Is Funny :-)


Recommended Posts

LOL, I was trying out to link a directory so I did

 

sandros@??? ln -s convert_tries/ link2convert

 

Seen that it works then I wanted to remove the link and what I did is:

 

sandros@??? ~> rm -r link2convert/

rm: cannot remove directory `link2convert/': Not a directory

sandros@??? ~> rm link2convert/

rm: cannot remove `link2convert/': Is a directory

 

 

Actually I thought it is only fun, but now I wonder how do I delete the link only, with rm link2convert/* ? Or does that actually delete the conent of convert_tries/ ?

Link to comment
Share on other sites

Ok it works, but the force option is not soo strong because to be sure (and see what touch test/a does) I tried your example.

 

sandros@??? ~> rm -f test/

rm: cannot remove `test/': Is a directory

 

-r though did the job.

 

And btw, THANKS! :-)

Link to comment
Share on other sites

  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...