Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

My home folder is missing after I run this command

sudo mv -t /usr/local/src ~/

How can I recover this?

share|improve this question

migrated from stackoverflow.com Nov 16 '12 at 10:11

This question came from our site for professional and enthusiast programmers.

1 Answer 1

up vote 2 down vote accepted

Basically you moved your home dir to /usr/local/src .. just need to move it back:

$myuser="my_user_name"
sudo mv -t /ur/local/src/$myuser /home/ && chown -R $myuser:myuser ~

Unless it actually moved to root user home dir and you want:

$myuser="my_user_name"
sudo mv -t /ur/local/src/$myuser / && chown -R $myuser:myuser ~
share|improve this answer
1  
chown -R should not be necessary... –  glglgl Nov 16 '12 at 7:27
    
I usd the -t accidently and I do't know the effect. It is recoverd now. Thank you very much. –  Colin Xie Nov 16 '12 at 7:30
    
Glad to be up service Colin Xie. –  Aimon Bustardo Nov 23 '12 at 8:55

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.