Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 06-22-2010, 02:41 PM   #1
LQ Newbie
Registered: Jun 2010
Posts: 6

Rep: Reputation: 0
how to retrieve mv deleted folder

I lost my folder name "....hemanth" while moving the folder "....hemanth" to "Documents" using mv command in the terminal .As there is already a folder named Documents in that destination folder I lost folder.please help me in retrieving the folder as that folder is very important for me.please............
thanks in advance .
Old 06-22-2010, 03:24 PM   #2
Registered: Feb 2010
Posts: 107

Rep: Reputation: 23
mv also renames files.
You could have just renamed the directory "hemanth" to "Documents".
Or check inside the "Documents" directory for "hemanth" or another "Documents" directory.

Last edited by mryuck; 06-22-2010 at 03:27 PM.
Old 06-22-2010, 03:38 PM   #3
LQ Veteran
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
You would need to show us the exact commands you used, but I think you will find that it exists somewhere.

One thing to keep in mind: As long as the source and destination are on the same physical device (eg a partition), nothing actually gets **moved**. In these cases, "mv" really means "rename".

Consider 2 examples: You have files named "fred" and "alice", and you have a folder named "stuff"

mv fred stuff **This renames ./fred to ./stuff/fred Thus fred now appears to have been moved into the "stuff" folder. (Note that "." is a synonym for "current directory")

mv fred alice **This renames ./fred to ./alice and thus appears to erase whatever was in alice. It's not however really erased---the old data in alice is still on the disk, but the sectors have just been released to the filesystem for re-use.

From the above, we see that--by default--mv can wipe out the target, but probably will not wipe out the source.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Retrieve deleted directory ashok.g Red Hat 3 06-21-2010 07:17 AM
How to retrieve deleted files saurabh_s2 Linux - Newbie 3 08-20-2009 01:45 AM
How to retrieve deleted files kumary Linux - General 3 01-26-2006 09:45 AM
I deleted some files, how do i retrieve it? novkhan Linux - General 4 10-31-2004 03:57 PM
how to retrieve deleted file in linux? markhod Linux - Software 4 09-08-2004 11:29 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:01 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration