【问题标题】:What is the difference between ps and ps -e command in linuxlinux中ps和ps -e命令有​​什么区别
【发布时间】:2015-05-24 14:43:08
【问题描述】:

linux中的ps和ps -e命令有​​什么区别? ps -e 给出更长的列表。

【问题讨论】:

  • 运行man ps - 人们已经花时间(几年前)记录了这一点。另外,请尝试在 Google 上搜索相同的字词:"man ps"。

标签: linux process operating-system


【解决方案1】:

来自手册,

默认情况下,ps选择所有具有相同有效用户ID的进程 (euid=EUID) 作为当前用户并与同一终端关联 作为调用者。

例如,如果您打开一个 gnome 终端并发出 ps 命令,它将列出您从该终端启动的所有进程。

ps -e列出系统中的所有进程。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2015-01-13
    • 2014-02-04
    • 2021-12-25
    • 1970-01-01
    • 2012-05-29
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多