zoukankan
html css js c++ java
Shell脚本检测文件夹是否已被挂载的方法
方法1:
if
grep
-
qs
'/mnt/foo'
/
proc
/
mounts
;
then
echo
"It's mounted."
else
echo
"It's not mounted."
fi
方法2:
if
mountpoint
-
q
/
mnt
/
foo
then
echo
"mounted"
else
echo
"not mounted"
fi
查看全文
相关阅读:
今日进度
2020年9月29日Java学习日记
2020年7月28日Java学习日记
2020年10月13日Java学习日记
2020年8月30日Java学习日记
2020年10月10日Java学习日记
2020年8月27日Java学习日记
2020年10月6日Java学习日记
2020年7月29日Java学习日记
2020年10月3日Java学习日记
原文地址:https://www.cnblogs.com/cheyunhua/p/11377599.html
最新文章
【Rust】泛型 trait
【Rust】泛型约束
【Rust】泛型空约束
【Rust】泛型实现
【Rust】关联类型
【Rust】定义新类型
【Rust】泛型多重约束
【Rust】嵌套模块
【Rust】泛型 where
【Rust】泛型函数
热门文章
架构漫谈 阅读笔记1
记账本APP10
记账本APP9
今日进度
体温一1
每周总结
今日进度
每周总结
今日进度
今日进度
Copyright © 2011-2022 走看看