Linux命令以检查Shell脚本是否正在运行 [英] Linux command to check if a shell script is running or not

查看:1575
本文介绍了Linux命令以检查Shell脚本是否正在运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

查找进程aa.sh是否正在运行的linux命令是什么. ps命令似乎不起作用,并且没有显示Shell脚本名称.

What is the linux command to find if a process say aa.sh is running or not. ps command does not seem to work and it does not show the shell script names.

请告知.

推荐答案

选中此

ps aux | grep "aa.sh"

这篇关于Linux命令以检查Shell脚本是否正在运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆