【问题标题】:What is the best way to get the application name if you have the process id on linux?如果您在 linux 上有进程 ID,那么获取应用程序名称的最佳方法是什么?
【发布时间】:2015-10-05 13:12:31
【问题描述】:

当您已经拥有进程 ID 时,获取应用程序名称的最佳方法是什么?

【问题讨论】:

标签: linux


【解决方案1】:

你可以使用ps:

ps -p 1337 -o comm=

-p 代表 pid,-o 代表输出格式。

【讨论】:

    猜你喜欢
    • 2019-01-14
    • 2014-10-24
    • 2020-02-14
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-03-21
    • 2010-09-13
    • 1970-01-01
    相关资源
    最近更新 更多