Linux – how to undo move file in linux

command-line-interfacelinuxshell

I made a mistake when moving a set of file by this command
mv src/* ..
instead of
mv src/* .

Best Answer

You can try using find to discover which files in ".." was modified at the time you made the erroneous mv, and then mv them in the right place again (using -exec find option for example).