I try to remove directories that contain files in the command line by using rm -rf dir1. However,I receive error message telling
rm: cannot remove 'dir1': Directory not empty
Any ideas how to solve?
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.
Sign up to join this communityI try to remove directories that contain files in the command line by using rm -rf dir1. However,I receive error message telling
rm: cannot remove 'dir1': Directory not empty
Any ideas how to solve?
found the solution. A file called fuse_hidden produced the issues. I wasn't able to delete that file, even in not by rightclicking and deleting.
I used lsof dir/fuse_hidden to show processes using this file and closed them. After that I rm -rf was possible.