Monday, January 16, 2023

Listing Bind Mounts on Linux Systems

To list bind mounts, we can use the findmnt command. For bind mounts, findmnt prints out the directories mounted in a pair of square brackets. Then, we can use this the following:


findmnt | grep -E "\[.*\]"

No comments:

Post a Comment