I use this command to change my home directory
sudo usermod -d new-path -m myname
But I got this error
usermod: user myname is currently logged in
How could I change my own home directory and move all files into new-path?
Thanks for any suggestions.
This server is a remote VM, and connected with putty (ubuntu 12.04)