Date: Mon, 15 May 2006 12:39:04 -0400 (EDT) From: Jerry McAllister <jerrymc@clunix.cl.msu.edu> To: freebsd-questions@freebsd.org Cc: Jerry McAllister <jerrymc@msu.edu> Subject: Re: Newbie File system Message-ID: <200605151639.k4FGd4XD008812@clunix.cl.msu.edu> In-Reply-To: <20060515115333.4E7F.GERARD@seibercom.net>
next in thread | previous in thread | raw e-mail | index | archive | help
> > Maan Jee wrote: > > > Hi > > > > Can someone explane that at which filesystem is my "/home" directory > > located? > > > > > > Filesystem 1K-blocks Used Avail Capacity Mounted on > > /dev/ad0s1a 507630 55002 412018 12% / > > devfs 1 1 0 100% /dev > > /dev/ad0s1e 507630 12 467008 0% /tmp > > /dev/ad0s1f 34336100 1564298 30024914 5% /usr > > /dev/ad0s1d 1506190 24892 1360804 2% /var > > > > thanks..../mj > > Your 'home' directory is usually located under '/usr'. Not necessarily, in fact, no, not at all. Your home directory is where-ever you put it. >From the 'df' information you show, it is impossible to tell where it's data actually resides. Technically "/home" is in root (eg '/') because that specifically is what you asked for. But, it is possible for you to have some data that looks like it is in /home, but have that living somewhere else and have a link in root that is named 'home' pointing to it. Now, if you mean your login home directory, that is where-ever your passwd file entry says it is. As the system administrator creating the account, you can specify that. Note: as far as namimg goes, that really depends on the mountpoint you create and use for the filesystem. On many of our systems I create a file system and mounted is as /home and use it to hold users' home directories. On my desktop running FreeBSD, I name the mountpoint for that filesystem '/hom' just to be lazy by one character. So, to answer your own question for yourself, do two things. First, do: ls -l / That will tell you if there is something named '/home' or not and if it is symlinked anythere. Then do: grep yourid /etc/passwd or finger yourid Of course, put your own login id in for 'yourid' In the first, the next to last field is your login home directory In the second it tells your home directory and just called it 'Directory:' ////jerry > > -- > Gerard Seibert > gerard@seibercom.net
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200605151639.k4FGd4XD008812>