https://github.com/lygstate/config
https://github.com/lygstate/config
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/lygstate/config
- Owner: lygstate
- Created: 2016-10-29T14:10:09.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2021-08-28T10:51:29.000Z (over 3 years ago)
- Last Synced: 2025-01-04T07:47:27.863Z (5 months ago)
- Language: Batchfile
- Size: 1.83 MB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# config
# Command to change the default home directory of a user
https://stackoverflow.com/questions/20797819/command-to-change-the-default-home-directory-of-a-user### Change the user's home directory:
usermod -d /newhome/username username
`usermod` is the command to edit an existing user.
`-d` (abbreviation for `--home`) will change the user's home directory.### Change the user's home directory + Move the contents of the user's current directory:
usermod -m -d /newhome/username username
`-m` (abbreviation for `--move-home`) will move the content from the user's current directory to the new directory.