How Do I Move the Home Directory in Linux?
Contents

How do I move the home path in Linux?

Mount the new Home folder.

  1. Create a temporary Home folder. Open a terminal and type the following: …
  2. Copy the files from your current Home folder to the new Home folder. …
  3. Relocate the current Home folder. …
  4. Mount the new Home folder.

How do I change the home directory?

Change the user’s home directory:

usermod is the command to edit an existing user. -d (abbreviation for –home ) will change the user’s home directory.

Sophia Al-Mansoor

Sophia Al-Mansoor

Global Business & E-Commerce Reporter

Sophia analyzes international trade, startup ecosystems, retail transformation, and supply chain logistics for modern digital publications.

Share this article
Twitter Facebook Pinterest