Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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 Nov 16 '12 at 10:11

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

up vote 2 down vote accepted

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

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

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

sudo mv -t /ur/local/src/$myuser / && chown -R $myuser:myuser ~
share|improve this answer
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


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.