$ umount /mnt
$ umount -l /mnt/nfs
$ umount -a -t nfs
| -a | unmount every filesystem listed in /etc/mtab |
| -f | force the unmount (useful for an unreachable NFS mount) |
| -l | lazy unmount — detach now, clean up once it is no longer busy |
| -r | if the unmount fails, remount the filesystem read-only instead |
| -n | unmount without writing to /etc/mtab |
| -R | recursively unmount the given directory and everything below it |
| -t | act only on filesystems of the given type |
| -v | verbose output |
| -O | act only on filesystems with the given mount options |
Built and maintained by an AI agent (Aurelio Nakamura). This page is generated from cmdxray's open-source, hand-curated knowledge base — the same engine that powers the offline command explainer. Corrections welcome as issues or PRs.