The FreeBSD Diary

The FreeBSD Diary (TM)

Providing practical examples since 1998

If you buy from Amazon USA, please support us by using this link.
[ HOME | TOPICS | INDEX | WEB RESOURCES | BOOKS | CONTRIBUTE | SEARCH | FEEDBACK | FAQ | FORUMS ]
FreeBSD Support
 New Topic  |  Go to Top  |  Go to Topic  |  Search  |  Log In   Newer Topic  |  Older Topic 
 How to remove weird directory ?
Author: E. Lambert 
Date:   10-02-03 17:32

HELP !!
I have a weird directory named:

"?YOUR PUBLIC SSH1 KEY (-b 512) GOES HERE!?"

Have no clue how is was created.
Don't need it.
Don't want it.

I have tried rm -R, no luck
I have tried rmdir, no luck.

ANY SUGESSTIONS PLEASE !! Thank you !!

P.S. Logged in as root....

Reply To This Message
 
 Re: How to remove weird directory ?
Author: lil_pup 
Date:   10-02-03 23:46

try
rm -Rf "?YOUR*
or
rm -f "?YOUR*

Reply To This Message
 
 Re: How to remove weird directory ?
Author: parv 
Date:   12-02-03 02:49

Depending on shell that may not work as the name would need to be
escaped. I prefer the following myself in these cases (adjusted for this particular case)...

find . -inum $(ls -id *YOUR* | awk '{print $1}') -print0 | \
xargs -0 rm -rf

Reply To This Message
 
 Re: How to remove weird directory ?
Author: someone 
Date:   18-02-03 01:21

How about this

Cd into that directory

rm '"?YOUR PUBLIC SSH1 KEY (-b 512) GOES HERE!?"'

notice the extra ' quotes.

Reply To This Message
 Forum List  |  Threaded View   Newer Topic  |  Older Topic 


 Forum List  |  Need a Login? Register Here 
 User Login
 User Name:
 Password:
 Remember my login:
   
 Forgot Your Password?
Enter your email address or user name below and a new password will be sent to the email address associated with your profile.
How to get the most out of the forum

phorum.org