MKILL(8)
π MKILL (section 8) β bestie's guide to yeeting busy mount points
okay so real talk, this page lives in section 8 of the manual (that's the sysadmin-stuff section, iykyk) and it comes to you from The SuSE boot concept. it's giving "old but iconic." let's get into it π
β¨ NAME β¨
mkill β sends a signal to whichever processes are out here making an active mount point busy. like, the ones who won't let go. π€
π¦ SYNOPSIS π¦
mkill [-SIG] [-u] /mnt1 [/mnt2...]
mkill [-l]
πΈ DESCRIPTION πΈ
okay so here's the vibe. mkill goes and figures out all the active mount points from /proc/mounts, then compares that list against the mount points you handed it. then it goes hunting for the processes that are making those mount points busy. π
and here's the cute little detail that matters: for that whole search, it only uses the links it finds in /proc/<pid>/. no cap. it does that specifically to avoid getting stuck hanging on files that are served up by network file systems like nfs(5). smart girl behavior honestly. π
the default signal is SIGTERM (y'know, for termination β the polite-but-firm ask). and if a mount point isn't active β like, it literally isn't found in /proc/mounts β then mkill will do exactly nothing. not a single thing. zero. nada. it just vibes. π
π₯ OPTIONS π₯
-<SIG>β you can specify signals either by name (like-HUP, like-SIGHUP) or by number (like-1). whatever feels right, bestie. β¨-0β the special signal0forcesmkillto list all the processes making the specified mount point busy. it's the "just show me who's here" mode. no signals sent, just receipts. π-uβ performs a lazy umount on the specified mount points before sending the signalSIGTERMorSIGKILL. it's the pre-game. π«Ά-lβ lists all known signals. your cheat sheet. your flashcards. your moment. π
π EXAMPLES π
mkill -TERM /var
this will terminate all processes accessing a separate /var partition. bye bestie ππ
mkill -HUP /dev/pts
all processes using a pseudo-terminal slave will hangup. iconic. the ptys are getting the group-chat "we need to talk." π
π RETURN VALUE π
always success, which is that zero is returned. literally always zero. she doesn't do failure. slay. π
π§ SEE ALSO π§
go read those next, bestie, they're all in the same friend group fr fr.
π COPYRIGHT π
2008 Werner Fink, 2008 SUSE LINUX Products GmbH, Germany.
π AUTHOR π
Werner Fink <werner@suse.de>
made with love by the 3rd Berkeley Distribution β¨ and dated Jan 31, 2008 β a literal classic, we stan an OG. drink water, unmount your partitions, and stay slay π
π¦ where this page comes from
- opensuse-leap 16.0: sysvinit-tools-doc 3.14-160000.2.2 Β· GPL-2.0-or-later
- Copyright 2008 Werner Fink, 2008 SUSE LINUX Products GmbH, Germany
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms