getmountpoint
Package: WA2L/edrc 1.5.57
Section: Library Commands (3)
Updated: 17 March 2007
Index
Return to Main Contents
NAME
getmountpoint - print the mountpoint of the current working directory
SYNOPSIS
edrc/lib/getmountpoint
AVAILABILITY
WA2L/edrc
DESCRIPTION
With
getmountpoint
the mount point is printed where the current working
directory is located on.
This output is basically identical to:
-
df -k . | awk 'END{print $6}' # Solaris, Linux
bdf . | awk 'END{print $6}' # HP-UX
xbdf . | awk 'END{print $6}' # all
but is much faster especially if there are large file systems on HP-UX.
OPTIONS
-
ENVIRONMENT
-
EXIT STATUS
- 0
-
mount point could be resolved
- 1
-
error while resolving the mount point
FILES
- /etc/mnttab
-
on HPUX and Solaris.
- /etc/mtab
-
on Linux.
EXAMPLES
-
SEE ALSO
edrcintro(1),
getfilesystem(3),
bdf(1),
df(1),
xbdf(1)
NOTES
The program is based on the source code in
compat.c
which is part of a
df
implementation written by Jeff Forys <jeffware@marjum.com>.
BUGS
-
AUTHOR
getmountpoint was developed 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:05 GMT, August 28, 2024