*nix - change user's home directory


/ Published in: Bash
Save to your folder(s)

change user's home directory


Copy this code and paste it in your HTML
  1. # To change the user's home directory, just use the 'usermod' command, which exists on all unices. It works like this:
  2.  
  3. usermod -d /path/to/new/homedir/ username

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.