[CentOS] Restore the moved directory

Mon Jul 11 13:47:41 UTC 2011
m.roth at 5-cent.us <m.roth at 5-cent.us>

Always Learning wrote:
>
> On Mon, 2011-07-11 at 16:24 +0300, beklan wrote:
>
>
>> By mistake, I moved the directory /etc to the /home. How  can i restore
>> the sytem back (or, at least that directory back)?
>
> I would download Parted Magic, make a CD and boot from it.
>
> 	http://partedmagic.com/doku.php?id=downloads
>
> The Linux CD installs into RAM and allows you to mount drives and, I
> assume, copy or move directories. I found it useful for correcting
> errors in fstab and creating directories as well as partitioning drives.

That seems excessive. If you haven't rebooted, why not just mv /home/etc
/? If not, any linux distro has a boot option from the install media of
linux rescue.

         mark