Solved

Moved 'root' folder by accident

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

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

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

Suggested Solutions

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…
Using 'screen' for session sharing, The Simple Edition Step 1: user starts session with command: screen Step 2: other user (logged in with same user account) connects with command: screen -x Done. Both users are connected to the same CLI sessio…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

713 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