可以使用以下命令來判斷進程是否存在:
ps aux | grep <進程名>
pgrep <進程名>
if pgrep <進程名>; then echo "進程存在" else echo "進程不存在" fi