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? This server is a remote virtual machine, and connected with putty (Ubuntu 12.04).