The UNIX and Linux Forums  


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 delete a file through SAMBA mcubitt Windows & DOS: Issues & Discussions 3 08-26-2008 07:52 PM
unable to UNTAR a file NIMISH AGARWAL UNIX and Linux Applications 6 05-09-2008 12:35 AM
unable to open a .log(4MB) file in vi venkatramana SUN Solaris 18 11-29-2007 09:45 AM
unable to copy file soujanya_srk UNIX for Dummies Questions & Answers 11 11-06-2007 06:09 AM
unable to delete file for permission problem sabyasm UNIX for Dummies Questions & Answers 4 02-26-2006 08:55 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 12-01-2006
arunkumar_mca arunkumar_mca is offline
Registered User
  
 

Join Date: Oct 2004
Posts: 256
unable to delete a file

Hi ..

I am trying to deleta a file but i cant do the error i get is

rm: hs_pdref_custom_dict_PG1_out_76_out non-existent

but when i do ls it is listing the in the directory ...
please find the filed below....

-rw-r----- 1 tsta107 users 118011030 Dec 1 04:07 hs_pdref_custom_dict_PG1_out_76
-rw-rw-r-- 1 tsta107 users 118011030 Dec 1 04:12 hs_pdref_custom_dict_PG1_out_75_out
-rw-rw-r-- 1 tsta107 users 23161856 Dec 1 04:14 hs_pdref_custom_dict_PG1_out_76_out

thanks in advance ..

Arun
  #2 (permalink)  
Old 12-01-2006
sysgate's Avatar
sysgate sysgate is offline Forum Advisor  
Unix based
  
 

Join Date: Nov 2006
Location: Bulgaria
Posts: 1,323
permissions issue ? have you tried "rm -rf" ?
  #3 (permalink)  
Old 12-01-2006
arunkumar_mca arunkumar_mca is offline
Registered User
  
 

Join Date: Oct 2004
Posts: 256
yeah i did that but still the file is not getting deleted and also the file appears in the listing
  #4 (permalink)  
Old 12-01-2006
grial's Avatar
grial grial is offline Forum Advisor  
El UNIX es como un toro
  
 

Join Date: Jun 2006
Location: Madrid (Spain)
Posts: 531
Perhaps some "non visible" character is part of its name...
Try, for instance:

Code:
find . -name "*hs_pdref_custom_dict_PG1_out_76_out*" -exec rm -i {} \;

  #5 (permalink)  
Old 12-01-2006
vino's Avatar
vino vino is offline Forum Staff  
Supporter (in vino veritas)
  
 

Join Date: Feb 2005
Location: Bangalore, India
Posts: 2,798
Quote:
Originally Posted by arunkumar_mca
yeah i did that but still the file is not getting deleted and also the file appears in the listing
Some process must be using that file. See the man pages of fuser or lsof. Use that.
  #6 (permalink)  
Old 12-01-2006
arunkumar_mca arunkumar_mca is offline
Registered User
  
 

Join Date: Oct 2004
Posts: 256
Graig,

I tired the command which you gave me.It prompted for Y/N and when i selected Y it ran succesfully.But file still list in the ls command.

Vino,
We dont have fuser permission and there is not manual for lsoft.
  #7 (permalink)  
Old 12-01-2006
grial's Avatar
grial grial is offline Forum Advisor  
El UNIX es como un toro
  
 

Join Date: Jun 2006
Location: Madrid (Spain)
Posts: 531
Quote:
Originally Posted by arunkumar_mca
Graig,

I tired the command which you gave me.It prompted for Y/N and when i selected Y it ran succesfully.But file still list in the ls command.
Any error message?
if not, try what vino said
else probably perms issue
fi

Quote:
Originally Posted by arunkumar_mca
Vino,
We dont have fuser permission and there is not manual for lsoft.
Based on the error you got the first time (rm: hs_pdref_custom_dict_PG1_out_76_out non-existent) I don't think it's what vino says but it could be if the find's rm doesn't give you the same error...
lsof is not an standard tool, you'll need to install it.
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 10:22 AM.


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