unable to delete a file


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers unable to delete a file
# 8  
Old 12-01-2006
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 Smilie

Quote:
Originally Posted by arunkumar_mca
Vino,
We dont have fuser permission and there is not manual for lsoft. Smilie
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.
# 9  
Old 12-01-2006
Hi grial....

Hope i will not be a permision problem since when i tried to delete it . It showing that not avalaible if it is a permision problem it would some other then that....Smilie




Please let me know what to do.

Thanks in advance.
Arun kumar.
# 10  
Old 12-02-2006
Do ls -li , find out the inode number and use find command to -exex rm -rf {}
# 11  
Old 12-03-2006
Have you tried kapilraj recomendation?
For eaxample:
ls -i
6336 hs_pdref_custom_dict_PG1_out_76_out 9456 hs_pdref_custom_dict_PG1_out_75_out . . . . .

find . -inum 6336 -exec rm {} \;
# 12  
Old 12-06-2006
Thanks to all....

Please let me know why it has been problem what is it doing with the inode ... Is that file inode is refered some where by other file ... Please let me know the concept behind this that will be gratefull to me ..

Thanks in advance..
Arun Kumar
# 13  
Old 12-06-2006
Quote:
Originally Posted by arunkumar_mca
Thanks to all....

Please let me know why it has been problem what is it doing with the inode ... Is that file inode is refered some where by other file ... Please let me know the concept behind this that will be gratefull to me ..

Thanks in advance..
Arun Kumar

u can simply do this

rename the file you're trying to delete. but place the newnamed file in another directory. /tmp for instance. then remove it.

mv (thefile u want to delete) (/another/directory/newname)

then

rm -rf (the newname you just gave the file)


i have ran into something similar.
Terrible
# 14  
Old 12-06-2006
Quote:
Originally Posted by arunkumar_mca
Please let me know why it has been problem what is it doing with the inode
The inode is a thing given to you by the filesystem, essentially a unique number that identifies it, like how processes have process id's. Each filesystem has it's own seperate inodes, which is why hard-links can't work between different filesystems -- the inode numbers could overlap. By giving find the inode instead of the name you can tell it which file to find without having to wrestle with unprintable names.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Tried many options but unable to delete blank lines from text file

Hi, I tried the following options but was unable to delete blank lines from file Input file = temp.hash.txt temp.hash.txt content 90 0 89.56 0 0 57575.4544 56.89 (9 Replies)
Discussion started by: uuuunnnn
9 Replies

2. AIX

Unable to delete files

heapdump716960.1416296627.txt heapdump716960.1416299494.txt heapdump716960.1416302375.txt trying to delete the above files root@atec:/oratec/prodcomn/temp>rm heap*.*.txt ksh: /usr/bin/rm: 0403-027 The parameter list is too long. root@atec:/oratec/prodcomn/temp>rm heap*.txt... (2 Replies)
Discussion started by: filosophizer
2 Replies

3. HP-UX

Unable to delete iscsi target

Hi Please can someone give me a hint on this, when I list the targets, I see two o them: #iscsiutil -p Operational Target Information ------------------------------ Target # 1 ----------- Target Name : iqn.1992-08.com.netapp:sn.142241859 Target Alias ... (2 Replies)
Discussion started by: fretagi
2 Replies

4. Solaris

Unable to delete directory even with 777 perm

Hi, I have an 'empty' directory 'tmp' of which I am the owner and 777 permission. But when I try to delete the directory using rmdir or rm command, it gives error. Command prompt snapshot: => uname SunOS ... (4 Replies)
Discussion started by: platinum81
4 Replies

5. Shell Programming and Scripting

Unable to overwrite but can delete file

I'm debugging a ksh script written by someone else that does the following: It runs a command and redirects stdout to a file called dberror that already exists using ">". This command fails with the following error: The file access permissions do not allow the specified action. dberror:... (1 Reply)
Discussion started by: savage66
1 Replies

6. Shell Programming and Scripting

Rsync help - unable to delete the Source file

Hi All, I am facing problem deleting Source while using the rsync command. rsync --include=*`date --date="-1 day" \+\%Y\%m\%d`* --include=*`date +\%Y\%m\%d`* --exclude=* --delete-after -auvb -e ssh USER@SERVER:SOURCE DESTINATION However the sync happens but not the deletion of the source... (1 Reply)
Discussion started by: amitkhiare
1 Replies

7. UNIX for Advanced & Expert Users

Unable to delete an open file

I am working on a unix server. I killed all the processes with my id on the machine. After that I tried to delete a file, I got an error:- file not removed.Text File busy. Deletion of directory prompted:- Directory not empty. Can anyone help me regarding this...??? Thanks, Vikas (11 Replies)
Discussion started by: vikasrout
11 Replies

8. Windows & DOS: Issues & Discussions

Unable to delete a file through SAMBA

We have AIX box with a share. We have a Windows 2000 server with a mapped drive to this share. We were able to create and delete files inside the mapped drive. I removed the map. Changed it to a test share. Removed that map. Added it back to teh original share. However, now we can... (3 Replies)
Discussion started by: mcubitt
3 Replies

9. UNIX for Dummies Questions & Answers

Unable to delete files

I have more than 1 million files (No directories). rm -rf * did not work. How do i delete all these files at a stretch in a single command? (9 Replies)
Discussion started by: sydney2008
9 Replies

10. UNIX for Dummies Questions & Answers

unable to delete file for permission problem

Hi, We are facing problem to delete some logfiles. Explaing with example for clear understanding : we have 2 accounts : prdpqrs (application account) & prodxyz (admin account - not root). Both of them are in same group called 'release' While prodxyz is trying to remove a file owned by... (4 Replies)
Discussion started by: sabyasm
4 Replies
Login or Register to Ask a Question