Skip to content
masterclass Buddy

Linux & Shell · Environment Variable

HOME

HOME is an environment variable for a user's login directory. It is passed to a process when the process starts and copied to a child created with fork.

Last updated

Syntax

HOME=<directory>

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • environ
  • execve(2)
  • fork(2)
  • getenv(3)
  • setenv(3)
  • unsetenv(3)
  • export

Source: environ(7) - Linux manual page. Checked 2026-11-03.