File deleted by g++ accidentally, recovery possible?

Asked by newwarrior21st

I typed in "g++ -o todA.cpp todA" to compile a program named todA.cpp and create an object named todA, this command is actually incorrectly typed and it's supposed to be "g++ -o todA todA.cpp". Unfortunately, after typing this in my program is gone. Is there any way to recover my lost file?

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu gnome-terminal Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

Use your backups, otherwise there may be todA.cpp~ which will be a hidden file in the same folder as the original (depends which text editor you used)

Can you help with this problem?

Provide an answer of your own, or ask newwarrior21st for more information if necessary.

To post a message you must log in.