LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 08-06-2015, 02:40 PM   #1
hack3rcon
Senior Member
 
Registered: Jan 2015
Posts: 1,432

Rep: Reputation: 11
Thumbs down Error removing file: Directory not empty


Hello.
I use Debian 8 x64 and when I want to remove a directory, Linux tell me "Error removing file: Directory not empty" but when I open the directory, It is Empty

Any idea?
 
Old 08-06-2015, 02:49 PM   #2
lazydog
Senior Member
 
Registered: Dec 2003
Location: The Key Stone State
Distribution: CentOS Sabayon and now Gentoo
Posts: 1,249
Blog Entries: 3

Rep: Reputation: 194Reputation: 194
Are you sure there are no hidden files in this directory?
Code:
ls -al
Have you tried;

Code:
rm -rf <dir>
 
1 members found this post helpful.
Old 08-07-2015, 12:19 AM   #3
hack3rcon
Senior Member
 
Registered: Jan 2015
Posts: 1,432

Original Poster
Rep: Reputation: 11
Problem solved. A process worked with this directory.
 
Old 08-07-2015, 03:26 PM   #4
SpudMan13
LQ Newbie
 
Registered: Jul 2015
Posts: 8

Rep: Reputation: Disabled
FWIW, you can identify if a file/directory is being used with either the "fuser" or "lsof" commands.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't empty the /tmp directory Read-only file system warning roctaiwan Linux - Newbie 8 03-04-2010 06:24 AM
Removing non-empty directory satimis Linux From Scratch 5 03-09-2009 04:58 AM
Removing non-empty directory George2 Programming 5 07-31-2007 01:15 AM
removing a non-empty directory in Suse 10.1 linaxp Linux - Newbie 1 09-16-2006 07:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 05:03 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration