SourceForge Logo
boxenv User Commands (cmd)

montpoints

Usage
montpoints

Description:


The montpoints command does just one thing: it outputs a list of all mount-points on the system. On each line, it outputs the full pathname of one mountpoint, including the root mountpoint ("/").

Sometimes it is necessary to identify a resource not based on where it lies on the system's complete filesystem, and not based on where it lies relative to the Present Working Directory: but rather based on where it lies on a removable filesystem. This is one thing that Un*x (as far as I know) doesn't provide an easy and simple mechanism to do. The montpoints command was written as part of the implementation of a mechanism for doing exactly that.

Just as montpoints was written in order to feed information to another (as of yet unwritten) utility, it in itself relies on information that it gets from Un*x's df command.