Skip to content

Instantly share code, notes, and snippets.

@qheuristics
Created May 30, 2014 07:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save qheuristics/09c39353ec5d48fba881 to your computer and use it in GitHub Desktop.
Save qheuristics/09c39353ec5d48fba881 to your computer and use it in GitHub Desktop.
home directory location
Where a user's home directory is located varies from platform to platform and among the users on a single computer. But the actual location of the home directory is available through special environment variables:
Unix/Linux
$HOME
Windows
%USERPROFILE%
Cygwin
$USERPROFILE
In order to find out where these environment variables actually point to, do the following:
on Unix/Linux, open a terminal and type the following command
echo $HOME
on Windows, open a command-prompt and type the following command
echo %USERPROFILE%
on Cygwin, open a bash and type the following command
echo $USERPROFILE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment