MOUNTPOINT(1)
๐
MOUNTPOINT โ the mountpoint(1) glow-up
okay bestie, sit down, we're doing a vibe check on mountpoint, a User Commands legend. this little icon checks if a directory or a file is a mountpoint, and honestly? she ate. ๐
โจ SYNOPSIS โจ
mountpoint [-d|-q] directory|file
mountpoint -x device
like, two whole moods. pick one. ๐
๐ธ DESCRIPTION ๐ธ
mountpoint checks whether the directory or file you handed it is a mountpoint. simple. iconic. no notes.
now, on kernels that support the statmount(2) system call โ that's Linux 6.8 and newer, iykyk โ she uses that interface. on older kernels? she gracefully falls back to reading /proc/self/mountinfo. adaptive queen behavior fr fr. ๐
๐ OPTIONS ๐
-d,--fs-devnoโ shows you the major/minor numbers of the device that's mounted on the directory you gave her. numbers, but make it โจinformativeโจ.-q,--quietโ be quiet, don't print anything. the silent treatment, but as a feature. ๐--nofollowโ do not follow a symbolic link if it is the last element of the directory path. she's staying right where she is, no chasing. ๐ซถ-x,--devnoโ shows the major/minor numbers of the given blockdevice on standard output.--showโ prints the mountpoint path for the given path. this resolves the given directory or file to its actual mountpoint, which is so useful with bind mounts, symlinks, or paths within filesystems. but heads up bestie โ this option requires kernel support for thestatmount(2)system call (Linux 6.8 and newer). on older kernels, this option will fail with an error message. no cap. ๐ญ-h,--helpโ displays help text and exits. your girl is helpful like that.-V,--versionโ displays version and exits. slay.
๐ EXIT STATUS ๐
mountpoint has the following exit status values, and each one is a whole personality:
0โ success; the directory is a mountpoint, or device is block device on--devno. we love a win. ๐1โ failure; incorrect invocation, permissions or system error. not the moment. ๐32โ failure; the directory is not a mountpoint, or device is not a block device on--devno. lowkey devastating but she's just being honest. ๐
๐ฆ ENVIRONMENT ๐ฆ
LIBMOUNT_DEBUG=allโ enables libmount debug output. set it and watch the tea spill. โ
๐ง NOTES ๐ง
the util-linux mountpoint implementation was written from scratch for libmount. the original version for the sysvinit suite was written by Miquel van Smoorenburg. giving credit where credit is due, periodt. ๐
๐ AUTHORS ๐
Karel Zak <kzak@redhat.com>
๐ฅ SEE ALSO ๐ฅ
๐ REPORTING BUGS ๐
for bug reports, use the issue tracker <https://github.com/util-linux/util-linux/issues>. come through, tell her what's wrong, she'll fix it. ๐ซถ
โญ AVAILABILITY โญ
the mountpoint command is part of the util-linux package which can be downloaded from Linux Kernel Archive <https://www.kernel.org/pub/linux/utils/util-linux/>. go get her. ๐
this has been your girl, signing off: this page is from util-linux 2.42.4, dated 2026-09-21. stay mounted, bestie ๐ โจ๐ธ
๐ฆ where this page comes from
- arch rolling: util-linux 2.42.4-1 ยท BSD-2-Clause AND BSD-3-Clause AND BSD-4-Clause-UC AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-or-later AND ISC AND LGPL-2.1-or-later AND LicenseRef-PublicDomain
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms