Created
May 30, 2014 07:27
-
-
Save qheuristics/09c39353ec5d48fba881 to your computer and use it in GitHub Desktop.
home directory location
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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