Entry
Operating system: Linux: Directory: Home: Location: Where is your home directory location? [Unix]
Feb 26th, 2004 16:48
Knud van Eeden,
----------------------------------------------------------------------
--- Knud van Eeden --- 05 January 2004 - 00:02 am --------------------
Operating system: Linux: Directory: Home: Location: Where is your home
directory location? [Unix]
---
In general your home directory will be at:
/home/<your username>
e.g.
/home/johnny
---
Another possibility is at:
/user/<your username>
e.g.
/user/johnny
---
---
If you are logged in as the 'root',
the home directory is at:
/root
---
---
Note: when you logon, and your open e.g. a console,
this could by default start in your home directory.
---
---
Method: Checking your home directory via environment variable $home
To check what the current value is, see e.g. the
$home environment variable.
---
Steps: Overview:
1. -Open a console
2. -If necessary change to the userid for which
you want to know the home directory
e.g. type
su <your user name>
and possibly supply a password
3. -Type the command:
set $home | more
4. -That will show a list of the currently defined
environment variables.
5. -Check in the list the value of the
$home variable
(press <ENTER> to continue)
6. -That will show e.g
/root
---
---
Tested successfully in Linux Red Hat v9
---
---
Internet: see also:
---
Operating system: Microsoft: Windows95/98/ME/NT/2000/XP: Directory:
Home: How find home directory?
http://www.faqts.com/knowledge_base/view.phtml/aid/28048/fid/772
----------------------------------------------------------------------