Problem solve Get help with specific problems with your technologies, process and projects.

Help! I lost my file.

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?
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!!!

Dig Deeper on Linux servers

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.