Solved

Moved 'root' folder by accident

Posted on 2004-09-14
3
369 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 50 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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

This is the error message I got (CODE) Error caused by incompatible libmp3lame 3.98-2 with ffmpeg I've googled this error message and found out sometimes it attaches this note "can be treated with downgrade libmp3lame to version 3.97 or 3.98" …
How many times have you wanted to quickly do the same thing to a list but found yourself typing it again and again? I first figured out a small time saver with the up arrow to recall the last command but that can only get you so far if you have a bi…
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…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

707 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now