Moved 'root' folder by accident

Hi,

I moved my root directory by accident (woops), so I copied it back to the original location.  I am just worried I am going to get some nasty error when I start up next time and have to go through some horrible rebuild process.

Here are the commands I performed in order:

mv ~ pstfix    -(woops got it the wrong way round and forgot I was logged in as root, can you tell i am new to Linux?)
cp pstfix ~     -(this command wouldn't work, said something about "Ommitting directory" so I tried the following...)
cp -r pstfix root

Now the pstfix and root directories exist and are both the right size.  Will everything be ok the next time I log on as root? or should I start frantically backing up all my work?

Thanks.
garry_mAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
troopernConnect With a Mentor Commented:
If by ~ you mean /root and "root" also is /root then everything should be OK.
As long as the content of the dir is the content of the former /root dir everything should be OK.
0
 
garry_mAuthor Commented:
Yep, everything works fine, thanks!
0
 
troopernCommented:
Cheers
0
All Courses

From novice to tech pro — start learning today.