如何查看程序是否在运行-Linux

1.命令

bash 复制代码
ps aux | grep RiboCode2_manythreads.py

2.结果:

bash 复制代码
2020200+ 1063124 99.8 19.2 56105444 50796184 pts/0 Sl 18:40 114:36 python RiboCode2_manythreads.py -a ./RiboCode_annot -c config15d.txt -o ./ORFs_15d_final_result --gtf -t 15

从输出结果可以看出,有三个 python RiboCode2_manythreads.py 进程正在运行,并且每个进程都在消耗大量的 CPU 和内存资源。具体信息如下:

bash 复制代码
PID:1063124
CPU 使用率:99.8%
内存使用率:19.2%
启动时间:18:40
运行时间:114 分钟 36 秒
命令:python RiboCode2_manythreads.py -a ./RiboCode_annot -c config15d.txt -o ./ORFs_15d_final_result --gtf -t 15

查看进程详细信息:

bash 复制代码
ps -p 1063124 -o pid,ppid,cmd,%mem,%cpu,etime

查看实时资源使用情况:

bash 复制代码
top -p 1063124,1064924,1069779
相关推荐
改一下配置文件28 分钟前
Ubuntu24.04安装NVIDIA驱动完整指南(含Secure Boot解决方案)
linux
深紫色的三北六号10 小时前
Linux 服务器磁盘扩容与目录迁移:rsync + bind mount 实现服务无感迁移(无需修改配置)
linux·扩容·服务迁移
SudosuBash14 小时前
[CS:APP 3e] 关于对 第 12 章 读/写者的一点思考和题解 (作业 12.19,12.20,12.21)
linux·并发·操作系统(os)
哈基咪怎么可能是AI1 天前
为什么我就想要「线性历史 + Signed Commits」GitHub 却把我当猴耍 🤬🎙️
linux·github
十日十行2 天前
Linux和window共享文件夹
linux
木心月转码ing2 天前
WSL+Cpp开发环境配置
linux
崔小汤呀3 天前
最全的docker安装笔记,包含CentOS和Ubuntu
linux·后端
何中应3 天前
vi编辑器使用
linux·后端·操作系统
何中应3 天前
Linux进程无法被kill
linux·后端·操作系统
何中应3 天前
rm-rf /命令操作介绍
linux·后端·操作系统