I overwrote my .c file with a compile. Can I get it back?

I am working on a school project. Unfortunately, I just ran a compile like so: gcc -o file.c file.o

I forgot to put the output executable name, and now my previous C file is gone. Is there a way to get this file back? I wrote a lot of code that is gone.

Program was written on a Unix server in C.

Thank you!


Source: unix

Leave a Reply