I want to rename a file, but I entered the "rm" command instead of "mv" command by mistake. Is there a way can get my file back?

Requires Free Membership to View

Sorry, perhaps the only thing Dos/Windows has over Unix, is this feature. That's why in Unix, some of us will issue an rm -i instead of rm. You would then need to issue a to rm the file. With Solaris, you can bring a file back only if you use file manager. . You would then look into dt/Trash, to bring back the file. I have heard some people say Unix treats people like adults. It assumes that if you issue a command, you really want to do it. So you better make sure you issue the right command. It will even let you do rm -rf, from /. Of course, it won't finish the job. During the removal of /usr, your system will crash! Don't do this!!!

This was first published in January 2003

There are Comments. Add yours.

TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to: