Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem deleting file by conventional methods 1

Status
Not open for further replies.

lincoln123

IS-IT--Management
Nov 4, 2002
15
GB
Hi,
I'm new to Solaris (I am a business analyst by background and ended up with this task by default). My company is developing a Java application to run on a Weblogic server 6.1 sp2. Due to resource constraints we are actually doing the development on a Windows 2000 environment, before transferring the code via FTP to a Tadpole Ultrabook IIe running Solaris. In the absence of the developers' presence an install was attempted which ended up with putting the files into the wrong directory, and consequently the application did not work. It was decided that the the easiest thing was to delete all the files and reinstall the application. Unfortunately we have been unable to delete one file
./inner_html_experiment.jsp

I'm logged in as root
I have tried deleting the file using
#rm inner_html_experiment.jsp
and get the message
# inner_html_experiment.jsp: Invalid argument
I try
# rm -rf -- ./inner_html_experiment.jsp
I do not get any error, but the file still remains undeleted
I cannot use chmod to change the ownership, or unlink. Similarly, I cannot delete the parent directory experiment as it has a member.
The file appears to be corrupted, as it has a creation date of 1993, which is not the case and no owner.
Any ideas on deletion?
Thanks,
Jack
 
Thanks for all your help guys.
Unfortunately the computer in question (a laptop) is being taken on a business trip, and I had to stop work.
Will start again when it gets back, and try these solutions.
Cheers,
Jack
 
Guys,
Thanks for all your help. I just got the Tadpole back from the trip and tried the below and it worked.:) Weird that there was so much trouble with what should have been a simple deletion.

danielhozac (Programmer) Nov 5, 2002
/bin/rm -fr experiment would delete everything in it and the directory itself.
//Daniel

Thanks Danial, and thanks to everyone else...appreciate it


 
Jack, glad to hear you sorted it - the machine must have needed a holiday just as much as I do right now! ;-)
 
I THINK YOU CAN DELETE THE FILE USING THE COMMAND

rm -r file_name

this shud work because i too had the same problem the last day.
when we do this command all the recursive files would be deleted, deleting all the files which would remain there even if we had used the

rm file_name

command
Sherin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top