执行 mountpoint -q /test/mount

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



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

相关文章:

  • 2022-01-07
  • 2021-07-30
  • 2022-02-26
  • 2022-02-03
  • 2022-12-23
  • 2021-08-15
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-11-20
  • 2022-12-23
  • 2021-12-03
  • 2022-12-23
  • 2022-01-18
  • 2021-07-01
  • 2021-06-24
相关资源
相似解决方案