The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Unable to chmod a file/directory lyonsd SUN Solaris 12 04-27-2009 05:08 AM
Removing spaces between XML tags<XX XX> -> <XXXX> sharoff UNIX for Dummies Questions & Answers 8 04-10-2008 10:48 AM
Unable to see all file in a current directory srikanthus2002 Shell Programming and Scripting 3 09-27-2006 04:07 AM
Directory exists tez UNIX for Dummies Questions & Answers 3 08-11-2006 07:46 AM
check if directory exists jerardfjay Shell Programming and Scripting 2 06-13-2005 02:26 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 11-06-2005
deejay deejay is offline
Registered User
  
 

Join Date: Nov 2005
Posts: 1
rm: Unable to remove directory xxxx/xxxx: File exists

Hi Everyone,

I am having problem to delete an "empty" folder ( messages attached ).
It displays "total 12" when i typed "ls -lart" on the fnxroot44 folder, but i can't view any file.

Is there any way to view those unseen files ? I don't know why option "a" is not working this time.

Would appreciate if somebody could give advice on this ?
Thanks in advance !

===================-
kirin{root}162: rm -rf test
rm: Unable to remove directory test/fnxroot44: File exists
rm: Unable to remove directory test: File exists

kirin{root}164: cd test
/export/d12/temp/test
kirin{root}165: ls -lart
total 14
2 drwxrwxrwx 25 root other 1024 Jul 7 17:28 fnxroot44/
10 drwxrwxrwx 3 root 13000 4608 Jul 26 16:40 ./
2 drwxrwxr-x 5 user07 other 512 Nov 7 11:11 ../

kirin{root}170: cd ..
/export/d12/temp/test
kirin{root}172: rmdir fnxroot44
rmdir: directory "fnxroot44": Directory not empty

kirin{root}167: cd fnxroot44/
/export/d12/temp/test/fnxroot44
kirin{root}168: ls -lart
total 12
2 drwxrwxrwx 25 root other 1024 Jul 7 17:28 ./
10 drwxrwxrwx 3 root 13000 4608 Jul 26 16:40 ../
===================-

DeeJay
  #2 (permalink)  
Old 11-07-2005
Perderabo's Avatar
Perderabo Perderabo is offline Forum Staff  
Unix Daemon
  
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,111
What does "ls -f" give you? What os? What filesystem type? What mount options were used? What shell are you using? Are you root?

Your ls program is behaving wrong. It must be aliased or functioned. Or perhaps it is part of a rootkit and you have been hacked. Look at the output:
kirin{root}168: ls -lart
total 12
2 drwxrwxrwx 25 root other 1024 Jul 7 17:28 ./
10 drwxrwxrwx 3 root 13000 4608 Jul 26 16:40 ../

Look at that 2 and that 10. Those are the sizes. But "ls -lart" did not request sizes. Somehow your command was translated to "ls -slart". Who did that? Why? What other translations are occurring? Try using the absolute path of ls. Check your PATH environment variable.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 12:42 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0