I am currently logged in into a CentOS server and I would like to change my home directory from /home/myuserName/ to /var/www/html/I tried the below command : > sudo usermod -d /var/www/html myuserNameBut this gives me an error: usermod: user myUserName is currently logged in
How to change the Home directory of the currently logged In user
linux;centos;users;home