Click here to Skip to main content
11,928,919 members (50,578 online)
Rate this:
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 1:28am
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)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.151126.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