查看进程树 - tlist/tasklist

12

windows xp 开始,tlist 命令被 tasklist 命令所取代。

旧的 tlist 命令具有选项 \t,该选项允许查询父/子进程关系。

tasklist 中是否存在类似的选项?

谢谢


2
我真的非常讨厌和鄙视模糊和泛泛的“问题已关闭” - 我希望有人能解释问题出在哪里。无论如何,是的,事实证明有一种工具可以通过命令行查看进程树:PsList - Windows Sysinternals,或者对我来说是 pslist64.exe -t - sdbbs
2个回答

10

8
"tasklist /SVC" 命令不会显示进程树,只会列出关联服务的名称。使用 Process Explorer 可以实现这一功能。 - ADTC
进程资源管理器是否具有命令行模式? - gumuruh
进程资源管理器,非常好! - John Smith

3
另外,您可以尝试。
tasklist /M

它将会给你输出结果,如下所示:
BESClientUI.exe               4296 ntdll.dll, wow64.dll, wow64win.dll,
                                   wow64cpu.dll
SynTPHelper.exe               2216 N/A
sihost.exe                    9340 ntdll.dll, KERNEL32.DLL, KERNELBASE.dll,
                                   msvcrt.dll, combase.dll, ucrtbase.dll,
                                   RPCRT4.dll, bcryptPrimitives.dll,
                                   sechost.dll, advapi32.dll,
                                   CoreMessaging.dll, ntmarta.dll,

您还可以对其进行过滤

tasklist /M /FI "xxx"

相反,xxx可以指定过滤参数。

Filters:
    Filter Name     Valid Operators           Valid Value(s)
    -----------     ---------------           --------------------------
    STATUS          eq, ne                    RUNNING | SUSPENDED
                                              NOT RESPONDING | UNKNOWN
    IMAGENAME       eq, ne                    Image name
    PID             eq, ne, gt, lt, ge, le    PID value
    SESSION         eq, ne, gt, lt, ge, le    Session number
    SESSIONNAME     eq, ne                    Session name
    CPUTIME         eq, ne, gt, lt, ge, le    CPU time in the format
                                              of hh:mm:ss.
                                              hh - hours,
                                              mm - minutes, ss - seconds
    MEMUSAGE        eq, ne, gt, lt, ge, le    Memory usage in KB
    USERNAME        eq, ne                    User name in [domain\]user
                                              format
    SERVICES        eq, ne                    Service name
    WINDOWTITLE     eq, ne                    Window title
    MODULES         eq, ne                    DLL name

例如:
tasklist /M /FI "IMAGENAME eq explorer.exe"

这将给你类似的东西:

Image Name                     PID Modules
========================= ======== ============================================
explorer.exe                  9912 ntdll.dll, KERNEL32.DLL, KERNELBASE.dll,
                                   msvcrt.dll, combase.dll, ucrtbase.dll,
                                   RPCRT4.dll, bcryptPrimitives.dll,
                                   OLEAUT32.dll, msvcp_win.dll, shcore.dll,
                                   advapi32.dll, sechost.dll, powrprof.dll,
                                   user32.dll, win32u.dll, GDI32.dll,
                                   gdi32full.dll, shlwapi.dll,
                                   windows.storage.dll, kernel.appcore.dll,
                                   profapi.dll, FLTLIB.DLL, SHELL32.dll,
                                   cfgmgr32.dll, TWINAPI.dll, PROPSYS.dll,
                                   winmm.dll, settingsynccore.dll,
                                   UxTheme.dll, dwmapi.dll, SspiCli.dll,
                                   USERENV.dll, twinapi.appcore.dll,
                                   WININET.dll, WTSAPI32.dll,
                                   TextInputFramework.dll, WINMMBASE.dll,
                                   bcrypt.dll, cryptsp.dll, RMCLIENT.dll,
                                   CoreUIComponents.dll, CoreMessaging.dll,
                                   wintypes.dll, ntmarta.dll, IMM32.DLL,

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接