[Cialug] Unable to remove a directory in RedHat7

Tom Pohl tom at tcpconsulting.com
Thu Aug 21 19:09:42 CDT 2014


How many characters is the full path and what kind of filesystem is it on?

What is the output of the following commands when you are in your deep path:
pwd
mount

-Tom


> On Aug 21, 2014, at 6:55 PM, Tom Sellers <tomsellers2001 at yahoo.com> wrote:
> 
> tried the \rm -rf path (actually the directory "Portal") but I still get the Directory not empty response.  
> 
> This is a very deep directory structure!  Is there a limit that I somehow passed?
> 
> 
> ________________________________
> From: Tom Pohl <tom at tcpconsulting.com>
> To: Central Iowa Linux Users Group <cialug at cialug.org> 
> Sent: Thursday, August 21, 2014 6:26 PM
> Subject: Re: [Cialug] Unable to remove a directory in RedHat7
> 
> 
> If you have an alias that is overriding the -rf flags, you can either specify the full path to rm ie /bin/rm OR you can preface rm with a \ to run the rm in your path instead of the alias:
> \rm -rf path
> 
> -Tom
> 
> 
>> On Aug 21, 2014, at 5:35 PM, Adam Hill <adam at diginc.us> wrote:
>> 
>> Is there an alias for rm that conflicts with -f in your rc file maybe?
>> 
>> Based off that error I'd guess there hidden dot files.  Try `ls -a dir/`
>> 
>> 
>> 
>> On Thu, Aug 21, 2014 at 5:26 PM, chris rheinherren <c.rheinherren at gmail.com>
>> wrote:
>> 
>>> Should be able to do that as root.
>>> 
>>> 
>>> On Thu, Aug 21, 2014 at 4:29 PM, Tom Sellers <tomsellers2001 at yahoo.com>
>>> wrote:
>>> 
>>>> I have been trying to clean up my old linux box that I used as a server
>>>> and make sure I did not leave anything on there important.  In the
>>> process
>>>> of doing so I have run into a directory that I can't delete.  It says it
>>> is
>>>> not empty but I am unable to see any files in that directory when I am
>>>> logged on as the root user.
>>>> 
>>>> Is there a way to remove the directory regardless of whether there are
>>> any
>>>> hidden files in it?
>>>> 
>>>> I tried a command I found on line rm -rf filename but that does not work.
>>>> Just tells me directory is not empty.
>>>> 
>>>> Suggestions?
>>>> _______________________________________________
>>>> Cialug mailing list
>>>> Cialug at cialug.org
>>>> http://cialug.org/mailman/listinfo/cialug
> 
> 
> 
>>> _______________________________________________
>>> Cialug mailing list
>>> Cialug at cialug.org
>>> http://cialug.org/mailman/listinfo/cialug
>> _______________________________________________
>> Cialug mailing list
>> Cialug at cialug.org
>> http://cialug.org/mailman/listinfo/cialug
> _______________________________________________
> Cialug mailing list
> Cialug at cialug.org
> http://cialug.org/mailman/listinfo/cialug
> _______________________________________________
> Cialug mailing list
> Cialug at cialug.org
> http://cialug.org/mailman/listinfo/cialug


More information about the Cialug mailing list