LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-14-2012, 05:12 AM   #1
RatedR
LQ Newbie
 
Registered: Nov 2012
Posts: 1

Rep: Reputation: Disabled
Deleting a broken file


Hopefully this is a simple one, was finding it difficult to search for a solution though.

How can I delete the broken file named "config"?

Code:
$ ls -l
ls: cannot access config: No such file or directory
total 4
drwxr-xr-x 2 root root 4096 Mar  2  2010 applications.d
?????????? ? ?    ?       ?            ? config
I want to replace the file with a valid one in order to start some software, but because it has no attributes or ownership I can't seem to do anything with it. Help!
 
Old 11-14-2012, 06:50 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
You're looking at the symptom of something else. Fix whatever causes file system corruption first. Before you go off and runs fsck on the umounted partition maybe tell us first what happened that caused this if you have any idea.
 
Old 11-14-2012, 02:49 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,008

Rep: Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629
That is a good point. Sometimes file systems do get bad for unknown reasons (actually reason's hard to discover).

I might be tempted to boot to a live cd of the same version if possible and check the filesystem or just delete that entry if possible. It can cause other issues so consider a backup now.
 
  


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
script for deleting matched line of a file from another file $Arsh Linux - Newbie 2 09-03-2009 07:38 AM
Find File broken, need search utility, where does WineX install, KDE file roller? Ohmn Mandriva 6 07-05-2004 10:34 PM
Yum update complains missing file (broken dep), but file can be located. davidas Linux - Software 0 03-27-2004 09:11 PM
deleting a file intellscreen Linux - Newbie 3 11-02-2003 12:39 PM
Deleting a file...... lucifer Linux - Software 0 09-03-2002 03:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:02 AM.

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