摘要:
方法1: import subprocess x = subprocess.check_output("docker ps | grep wget | awk -F '[ ]+' '{print $NF}' ", shell=True) #data = x.communicate() print(x 阅读全文
摘要:
参考: https://blog.csdn.net/shadow_zed/article/details/109030821 显示命令的绝对路径(cmd) ps -eo pid,ppid,%mem,%cpu,cmd --sort=-%cpu | head 只想看命令名字而不是命令的绝对路径(comm 阅读全文