1833159 Members
3080 Online
110051 Solutions
New Discussion

Re: removing a directory

 
SOLVED
Go to solution
Thi Vu
Frequent Advisor

removing a directory

Hello everyone,

I'm trying to remove a directory from the /tmp dir. (to make long story short - I have to remove this dir. in order to install a software). When I did a listing of /tmp this directory (em) showed up, so when I went and did a remove
rm -R em OR rm -R /tmp/em I got the message: rm: em non-existent. I can't cd to the /tmp/em nor can I do a listing of the directory. Any help is greatly appreciated. Thank

Thi
3 REPLIES 3
harry d brown jr
Honored Contributor
Solution

Re: removing a directory

Thi,

can you show us what an

ls -l /tmp | grep " em"

shows?

It say's "em" and not (em) correct?


live free or die
harry
Live Free or Die
Sandip Ghosh
Honored Contributor

Re: removing a directory

I think you are having some escape charecter behind em. So , send the output of ll to a file and edit that file to remove the directory em.

Sandip
Good Luck!!!
Thi Vu
Frequent Advisor

Re: removing a directory

It worked. I finally was able to remove the directory /tmp/em. I was able to do: cd *em* as well as ll *em* - thus when I removed rm -R *em* it worked.

Thanks for you quick help.