查看一个目录是否已经mount --bind

时间:2022-04-28 04:22:05
执行 mountpoint -q /test/mount

echo $? 如果是0表示已经mount 


mountpoint -q /test/mount || mount -o bind /some/directory/here /test/mount