Created
February 5, 2018 06:24
-
-
Save Fusl/0b12fbaa96015887cc93815005e04ffe to your computer and use it in GitHub Desktop.
recursive umount
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
findmnt -u -n -r -o TARGET -R /path/to/mountpoint/ | sort -r | tr '\n' '\0' | xargs -0 -r umount |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment