Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Moved 'root' folder by accident

Posted on 2004-09-14
3
Medium Priority
?
379 Views
Last Modified: 2010-04-20
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.
0
Comment
Question by:garry_m
  • 2
3 Comments
 
LVL 7

Accepted Solution

by:
troopern earned 200 total points
ID: 12058083
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
 

Author Comment

by:garry_m
ID: 12062286
Yep, everything works fine, thanks!
0
 
LVL 7

Expert Comment

by:troopern
ID: 12067109
Cheers
0

Featured Post

 [eBook] Windows Nano Server

Download this FREE eBook and learn all you need to get started with Windows Nano Server, including deployment options, remote management
and troubleshooting tips and tricks

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
Suggested Courses
Course of the Month6 days, 22 hours left to enroll

782 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question