In Debian, I want to remove a directory from my home directory. It is displaying a mesage directory not empty, i could not see any file inside the directory.(tried ls -l) How to remove the directory ?.
i tried the command with Sudo option.

link|improve this question
feedback

migrated from stackoverflow.com Nov 12 '09 at 10:09

This question came from our site for professional and enthusiast programmers.

4 Answers

try ls -a to see if there's any hidden file.

You can remove recursively using rm -r

link|improve this answer
feedback

rm -rf /home/user/directory

link|improve this answer
Thanks for this help. it worked. Thanks to all of you for your quick response. :-) – Reji S nair Nov 12 '09 at 9:52
feedback

Try

ls -a -l

To show hidden files, then remove them.

Or, to force the directory and everything inside it to be deleted, try:

rm -r directory
link|improve this answer
feedback

Load up your terminal and type the following:

cd ~/

rm -rf ./my-directory

This should work assuming you have the correct permissions

link|improve this answer
I'm sorry, but there is a reason you are suggesting to connect via SSH? – mrucci Nov 12 '09 at 11:11
Sorry, I thought you were doing this on a remote machine. I've updated my answer accordingly. – KushalP Nov 30 '09 at 19:57
feedback

Your Answer

 
or
required, but never shown