Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: Linux Server Client
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 3-May-13 1:28am
Comments
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 OriginalGriff 410
1 Jochen Arndt 200
2 Richard MacCutchan 135
3 DamithSL 105
4 PIEBALDconsult 90
0 OriginalGriff 6,045
1 DamithSL 4,601
2 Maciej Los 4,032
3 Kornfeld Eliyahu Peter 3,480
4 Sergey Alexandrovich Kryukov 3,220


Advertise | Privacy | Mobile
Web02 | 2.8.141220.1 | Last Updated 3 May 2013
Copyright © CodeProject, 1999-2014
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