如何查看程序是否在运行-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
相关推荐
M78佐菲3 小时前
ARM学习笔记(1)
linux·arm开发·笔记·嵌入式硬件·学习
益达丫4 小时前
Socket编程揭秘:端口、IP与进程通信的底层逻辑
linux·笔记
chicheese6 小时前
Linux 面试速查表:从初级到高级,附高频场景答题模板
linux·运维
Linux-lucky7 小时前
32-38-Linux学习之旅之MySQL综合
linux·运维·学习·mysql·ubuntu
vortex58 小时前
常用终端模拟器全面对比:Kitty、WezTerm、Ghostty 与 Konsole
linux
INGNIGHT9 小时前
270 · 电话号码的字母组合II(Trie)
linux·算法
zly35009 小时前
VMware Converter Standalone 物理机转化为虚拟机后源1硬盘变成了2个硬盘(2个硬盘文件)虚拟机无法启动。
linux·运维·服务器
GeW11 小时前
从内核到数据:Linux与工业数据库如何支撑高端制造
linux
小小的木头人12 小时前
Linux systemd Service 与 Timer 定时任务原理及实战
linux
熊明才13 小时前
WSL2 网络突然瘫痪(Network is unreachable / 没有 eth0)最短修复指南(2026年9月20日亲测可用)
linux·windows·wsl2