Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

command to change user home directory

usermod -d HOME_DIR USER

#use this instead to move the content of the old directory to the new one
usermod -d HOME_DIR -m USER
Source by linuxize.com #
 
PREVIOUS NEXT
Tagged: #command #change #user #home #directory
ADD COMMENT
Topic
Name
5+1 =