Odd File Listing and unable to deleted


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Odd File Listing and unable to deleted
# 1  
Old 05-25-2005
Odd File Listing and unable to deleted

Hi,

I'm trying to delete some files that are causing a script to malfunction. I cannot seem to remove them even with -f. I have tried chmod and chown and they don't seem to be affected the files at all. they have weird dates listings, too. Here is their listing:

Code:
br-xr-xrwt  29561 538995051 538996015   0, 107 Oct 23  2030 10643471516118.htm
c---r-----  8224 8224     8224      32,  32 Jan 29  1987 106434721073133.htm

How do I delete these files?
# 2  
Old 05-25-2005
delteing files

Hi

I think u need write permissions to delete a file .
Correct me if i m wromg

chrs
Rahul
# 3  
Old 05-25-2005
You need a write permission for the directory holding a file so that you can delete the file under a directory. so do

ls -d TheDirectoryHoldingTheFile

and see or share the output with us. if the directory is not writable. use chmod +w DirectoryName for the directory

regards
emil babayev
# 4  
Old 05-25-2005
That looks to me like a damaged filesystem. If you delete those files you may destroy the filesystem or panic the os. First you should prove that the fs is in an impossible state. Your first file is claiming a link count of 29561 so check to see if there are 29560 other links to that file. Do a "ls -li" on the file to see the inode number. Then do a find command resticted to the file system looking for that inode number. If you don't find 29561 links, the filesystem is hosed.

You can attempt to repair it, but you may need to rebuild it. I can't get any more specific since you didn't give your os and fs type.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Restoring deleted file with rm -rf

Is there a way I could recover a deleted text file with "rm -rf" command. Running CentOS 6.5. Thank you. (5 Replies)
Discussion started by: galford
5 Replies

2. Shell Programming and Scripting

Seperate Odd and Even numbers from 1 file to 2 files

Hey guys. I have been trying to figure out an easy way to seperate a liste of 150k numbers (10 digits) in a .txt file into odd and even numbers with each of their own files, for a project at work. I've tried Excel, but it was too much for it and it wasnt very simple. So i gave up after... (13 Replies)
Discussion started by: TranceC
13 Replies

3. UNIX for Dummies Questions & Answers

[Solved] How to remove listing of current user cmd from ps -ef listing?

Hi All, Could you please help to resolve my following issues: Problem Description: Suppose my user name is "MI90". i.e. $USER = MI90 when i run below command, i get all the processes running on the system containing name MQ. ps -ef | grep MQ But sometimes it lists... (8 Replies)
Discussion started by: KDMishra
8 Replies

4. Shell Programming and Scripting

odd problem in read lines from file

Hi, I wrote a small program to read lines from a file and count the lines. The program is as below: filename=$1 count=0 cat $filename | while read -r line do printf "%5d:%s\n" $count "$line" count=$((count + 1)) done echo " $count " After I run the program, the result is... (4 Replies)
Discussion started by: jianma
4 Replies

5. Shell Programming and Scripting

Odd and even file names

Hello, I want to sort/identify 600 files according to odd or even numbers in the files names. How can I do this? The goal is to perform different ImageMagick operations based on even or odd numbers in the file names. The file names have this pattern: bdf0001.tif, bdf0044.tif and bdf0136.tif ... (4 Replies)
Discussion started by: garganmou
4 Replies

6. UNIX for Dummies Questions & Answers

how to know who has deleted the file.

Hi, We have a file which needs supper user previleges to delete. There are 10 users having super user preveleges. Some times back that file got deleted. How to know who has deleted that file? (6 Replies)
Discussion started by: siba.s.nayak
6 Replies

7. Solaris

/etc/passwd file been deleted

Hi Folks , Would be grateful if someone could help me out in one of the question that came to my mind . If the /etc/passwd file has been deleted and the system has been rebooted . Then i dont think that any user would be able to login and the system will be useless . Whats the best solution for... (5 Replies)
Discussion started by: gera_sachin125
5 Replies

8. Shell Programming and Scripting

Listing Deleted Files and Directories

Please provide me a shell script so that i can list which file or directory has been deleted, by which user and at what time. The script should take date as argument and should list out name of the file/directory, which user had deleted them and at what time since that particular date. Kindly post. (1 Reply)
Discussion started by: raviviolet13
1 Replies

9. Linux

how can i restore a deleted file

I am a relatively new linux user.would like to know how to undo a deleted file (2 Replies)
Discussion started by: wojtyla
2 Replies

10. UNIX for Dummies Questions & Answers

Odd file with no name

OS: Solaris 2.6 File with no name created Mar of 2000 - ls (with or without options) shows the file but no name associated with it. Example: ls -ltca -rw-r--r-- 1 root other 9721 Apr 16 2003 printcap -rw-r--r-- 1 root other 267 Apr 16 2003 -rw-r--r-- 1 root other 258 Apr 16... (3 Replies)
Discussion started by: RTM
3 Replies
Login or Register to Ask a Question