The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM


UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
how to remove all except one file? praveen_b744 UNIX for Dummies Questions & Answers 3 01-29-2008 05:15 AM
rm command not able to remove file jambesh Shell Programming and Scripting 7 12-21-2007 03:37 AM
Remove the contents of a file without deleting the file sumesh.abraham Shell Programming and Scripting 10 12-02-2006 01:35 PM
how to remove ^@ from a file using sed...or anything sayonm Shell Programming and Scripting 13 08-08-2006 05:38 AM
help to remove file ranj@chn UNIX for Dummies Questions & Answers 2 06-16-2006 01:03 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-07-2007
Registered User
 

Join Date: Jul 2007
Posts: 53
Stumble this Post!
remove file

hi all
i have a file and i removed it using the rm command and its still comiing back
pls tell me whats wrong
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 09-07-2007
...@...
 

Join Date: Feb 2004
Location: NM
Posts: 3,854
Stumble this Post!
define: "still coming back"

Does it go away at all? It may have hidden characters (ones that are legal but do not display) in the filename. try getting the file to show using ls.

Copy the filename from the screen using copy and paste.

Paste the filename after rm
Code:
rm '<paste file name here>'
Those are single quote marks.
Reply With Quote
  #3 (permalink)  
Old 09-08-2007
cassj's Avatar
Supporter
 

Join Date: Jul 2003
Location: Interweb
Posts: 107
Stumble this Post!
First of all, what file are you deleting? Is it a file that you created or is it a system or application file? If it's a file you created and you know that no other process would be creating this file, cd to the file's directory and try removing the file with:

Code:
sudo rm -f <filename>

Cheers...Cassj
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 09:15 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0