• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Shell/FTP: Can't seem to delete a directory

jiwq

Platinum Member
In my dreamhost Shell / FTP, there's some directories that were created when I did some cvs, but can't seem to delete. It looks like all the files inside each directory are gone, but whenever I delete, it says that the dir is not empty. Any clue on how to delete the dir?
 
rm -rf

But be careful with that. Double check the command to make sure you didn't fat finger something. I've done it, and it can hurt. 🙁

This should probably work too (you probably have a hidden file (starts with a .) in there):
cd DIR && rm .* && cd && rmdir DIR
 
so rm -rf forcefully gets rid of everything in the current dir and everything inside it?
 
Originally posted by: jiwq
so rm -rf forcefully gets rid of everything in the current dir and everything inside it?

It should have read rm -rf DIR.

It recursively and forcefully gets rid of everything under DIR and then the DIR itself.
 
Originally posted by: kamper
Originally posted by: n0cmonkey
cd DIR && rm .* && cd .. && rmdir DIR
Fixed. Careful there!

Edit: although I guess it wouldn't matter if DIR is absolute

Mine's fine if the DIR is in the home directory, guess I could have dumbed it down even more.
 
Back
Top