How to test if a given path is a mount point

I discover that on my Fedora 7 there is a mountpoint command.

From man mountpoint:

NAME
       mountpoint - see if a directory is a mountpoint

SYNOPSIS
       /bin/mountpoint [-q] [-d] /path/to/directory
       /bin/mountpoint -x /dev/device

Apparently it come with the sysvinit package, I don’t know if this command is available on other systems.

[root@myhost~]# rpm -qf $(which mountpoint)
sysvinit-2.86-17

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)