Click here to Skip to main content
11,720,545 members (78,457 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: Linux Server Client
Hi Techies,

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 3-May-13 0:28am
Mike Meinz at 3-May-13 6:32am
You will have to reload it from your backup. It was replaced by the newly compiled program.
mithun_linux at 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 at 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 at 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)

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 2,129
1 OriginalGriff 884
2 F-ES Sitecore 640
3 Maciej Los 609
4 Richard MacCutchan 540

Advertise | Privacy | Mobile
Web02 | 2.8.150901.1 | Last Updated 3 May 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100