Click here to Skip to main content
15,884,237 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Techies,
Greetings!!!!

I have a query with me . Hope you can find a solution.
I hade a source file named "server.c"

[android@android-desktop:~/mithun/application/final]# ls
./  ../  client*  client.c  server* server.c


i compiled it wrongly as "gcc server -o server.c"

and now the server.c is replaced by server*

I dont find server.c can u please tel me how to recover it now

[android@android-desktop:~/mithun/application/final]# ls
./  ../  client*  client.c  server*
Posted
Comments
Mike Meinz 3-May-13 6:32am    
You will have to reload it from your backup. It was replaced by the newly compiled program.
mithun_linux 3-May-13 6:36am    
i really don't have a back up with me .. is there any command to get it back? or it wud hav been archieved some where in some directories!!
Richard MacCutchan 3-May-13 7:08am    
No, it's lost. There are programs that can try and recover lost files but they are not 100% successful. Google for "undelete" and see what you can find.
mithun_linux 3-May-13 7:27am    
OMG! then i have to start rewriting the code again . Anyways thanx a lot for ur replies. Good luck ahead.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900