homedir
Package: WA2L/edrc 1.5.57
Section: Library Commands (3)
Updated: 18 October 2008
Index
Return to Main Contents
NAME
homedir - Get Home Directory of a User
SYNOPSIS
edrc/lib/homedir
[
user
]
AVAILABILITY
WA2L/edrc
DESCRIPTION
The
homedir
command returns the logical path of a given user
to standard output. In the C-shell
and the Korn-shell this corresponds to
cd ~user
.
The
homedir user
command is especially useful in Bourne-shell scripts,
where the above command with
~
does not work.
OPTIONS
- user
-
username of the user whose homedir has to be resolved.
EXIT STATUS
- 0
-
always
EXAMPLES
- 1) HOWTO use homedir to evaluate a home directory of a user
-
[ /home/user ]
[ user@client ] [ksh]: homedir sfitools
/apl/sfitools
SEE ALSO
edrcintro(1),
gid(3),
gecos(3),
group(3),
uid(3),
user(3)
FILES
- /etc/passwd
-
(or related NIS/NIS+ table)
NOTES
Parts of this manpage were extracted from the documentation of
the
SFI-Director
and modified to fit to the
WA2L/edrc
package. See
http://sfidirector.sourceforge.net
for more information about the
SFI-Director.
BUGS
-
AUTHOR
homedir was developed by Peter Stevens and integrated into
WA2L/edrc
by Christian Walther. Send suggestions
and bug reports to wa2l@users.sourceforge.net .
COPYRIGHT
Copyright © 2008
Christian Walther
This is free software; see
edrc/doc/COPYING
for copying conditions. There is ABSOLUTELY NO WARRANTY; not
even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
This document was created by man2html
using the manual pages.
Time: 16:53:09 GMT, August 28, 2024