windows查看进程线程的命令pslist

pslist是用命令行查看线程;ProcessExplorer是图形化的查看线程,都在附件中。

1.查看进程

tasklist

or  pslist -t

Name                             Pid Pri Thd  Hnd      VM      WS    Priv
Idle                               0   0   2    0       0      28       0
  System                           4   8  69 1222    1824     308       0
    smss                         832  11   3   20    3748     408     172
      csrss                      900  13  12  807   72428   16152    2568
      winlogon                   924  13  21  516   61272    4704    8536
        services                 968   9  15  280   22556    4516    1868
          avp                    256   8  36 7185  190528   22332   50308
explorer                        2060   8  16  575  122880   13400   17752
  msnmsgr                       1604   8  33  778  222560   19240   32792
  cmd                           3680   8   1   31   31084    3004    2164
    pslist                      5476  13   2   91   30500    2744    1236
  notepad                       4276   8   1   45   33692    3956    1344
  IEXPLORE                      5184   8  61 2143  403392   31236  105436
  eclipse                       6088   8   1   33   29884    3184     960
    javaw                       4484   8  40 1197  729124  139424  193496
      javaw                     4252   8  11(十一个线程)  310  187820    8080   13908

2.查看进程中的线程 http://technet.microsoft.com/en-us/sysinternals/bb896682.aspx

pslist -dmx 4252

Name                Pid      VM      WS    Priv Priv Pk   Faults   NonP Page
javaw              4252  202224   21848   23968   24476     7927      4   47
 Tid Pri    Cswtch            State     User Time   Kernel Time   Elapsed Time
5428   8      2617     Wait:UserReq  0:00:01.312   0:00:00.515    0:06:41.625
5312  15       614     Wait:UserReq  0:00:00.078   0:00:00.000    0:06:41.484
1380  15         7     Wait:UserReq  0:00:00.000   0:00:00.000    0:06:41.468
2012  10         7     Wait:UserReq  0:00:00.000   0:00:00.000    0:06:41.468
3876   9      1037     Wait:UserReq  0:00:00.046   0:00:00.187    0:06:41.187
5884   9        65     Wait:UserReq  0:00:00.000   0:00:00.015    0:06:41.187
4444  10       236     Wait:UserReq  0:00:00.000   0:00:00.015    0:06:41.171
4564  15        12     Wait:UserReq  0:00:00.000   0:00:00.000    0:06:40.953
4644  15       270     Wait:UserReq  0:00:00.234   0:00:00.015    0:06:40.953
4292   8         5     Wait:UserReq  0:00:00.000   0:00:00.000    0:06:40.953
5964  15      6422   Wait:DelayExec  0:00:00.000   0:00:00.000    0:06:40.937

Introduction

pslist exp would show statistics for all the processes that start with "exp", which would include Explorer.
-d Show thread detail.
-m Show memory detail.
-x Show processes, memory information and threads.
-t Show process tree.
-s [n] Run in task-manager mode, for optional seconds specified. Press Escape to abort.
-r n Task-manager mode refresh rate in seconds (default is 1).
\\computer Instead of showing process information for the local system, PsList will show information for the NT/Win2K system specified. Include the -u switch with a username and password to login to the remote system if your security credentials do not permit you to obtain performance counter information from the remote system.
-u username If you want to kill a process on a remote system and the account you are executing in does not have administrative privileges on the remote system then you must login as an administrator using this command-line option. If you do not include the password with the -p option then PsList will prompt you for the password without echoing your input to the display.
-p password This option lets you specify the login password on the command line so that you can use PsList from batch files. If you specify an account name and omit the -p option PsList prompts you interactively for a password.
name Show information about processes that begin with the name specified.
-e Exact match the process name.
pid Instead of listing all the running processes in the system, this parameter narrows PsList‘s scan to tthe process that has the specified PID. Thus:
pslist 53
would dump statistics for the process with the PID 53.

How it Works

Like Windows NT/2K‘s built-in PerfMon monitoring tool, PsList uses the Windows NT/2K performance counters to obtain the information it displays. You can find documentation for Windows NT/2K performance counters, including the source code to Windows NT‘s built-in performance monitor, PerfMon, in MSDN.

Memory Abbreviation Key

All memory values are displayed in KB.

  • Pri: Priority
  • Thd: Number of Threads
  • Hnd: Number of Handles
  • VM: Virtual Memory
  • WS: Working Set
  • Priv: Private Virtual Memory
  • Priv Pk: Private Virtual Memory Peak
  • Faults: Page Faults
  • NonP: Non-Paged Pool
  • Page: Paged Pool
  • Cswtch: Context Switches

以下是非Windows系统本身附带的外部命令,均存放于光盘 PE 系统目录下的 System32 目录下。

AUTORAMRESIZER.EXE 自动根据物理内存调整虚拟盘大小(PE)。 
CHOICE.EXE DOS 选择命令支持扩展 
DEVCON.EXE 设备控制台命令行工具 
FINDPASS.EXE 查找系统管理员口令的命令行工具(可能有病毒虚警) 
FPORT.EXE TCP/IP与端口检测工具 
HWPnp.exe 重新检测即插即用硬件的实用工具,可激活移动存储器等 
KEYBOARD.EXE 更改键盘区域属性的命令行工具 
KEYDOWN.EXE 检测键盘按键的命令行工具 
NC.EXE 大名鼎鼎的网络强力命令行工具! 
NETCFG.EXE Windows PE 环境的网络配置命令行工具 
PASSWDRENEW.EXE Windows 口令离线修改工具 
PENETCFG.EXE 牛人编写的 PE 网络环境配置工具 
PSINFO.EXE 本地和远程系统信息检测命令行工具 
PSKILL.EXE 结束本地或远程进程的命令行工具 
PSLIST.EXE 系统进程查看工具 
PSPASSWD.EXE 更改本地或远程系统口令命令行工具 
PSSERVICE.EXE 管理系统服务的命令行工具 
PULIST.EXE 系统进程列表查看 
TCPVCON.EXE 查看活动进程的TCP连接状态 
TFTPD32.EXE 简单的 TFTP 工具 
WGET.EXE 功能强大的命令行下载工具 
XCACLS.EXE 文件及目录访问控制列表的命令行加强工具 
XNVIEW.EXE 袖珍图像查看工具(小巧够用,不需升级)

原文地址:https://www.cnblogs.com/AmilyWilly/p/9090020.html

时间: 2024-07-30 14:21:28

windows查看进程线程的命令pslist的相关文章

在 Linux 下查看进程运行时间的命令

对于一个 Linux 系统的新手,该如何在我的 Ubuntu 服务器上查看一个进程(或者,根据进程 id 去查看)已经运行了多久呢?下面兄弟连Linux培训分享给大家好方法. ···你需要使用 ps 命令来查看关于一组正在运行的进程的信息.ps 命令提供了如下的两种格式化选项. etime 显示了自从该进程启动以来,经历过的时间,格式为 [[DD-]hh:]mm:ss. etimes 显示了自该进程启动以来,经历过的时间,以秒的形式. 如何查看一个进程已经运行的时间? 你需要在 ps 命令之后添

linux下查看进程(ps命令)

转自:http://www.jb51.net/LINUXjishu/151851.html Linux中的ps命令是Process Status的缩写.ps命令用来列出系统中当前运行的那些进程.ps命令列出的是当前那些进程的快照,就是执行ps命令的那个时刻的那些进程,如果想要动态的显示进程信息,就可以使用top命令.要对进程进行监测和控制,首先必须要了解当前进程的情况,也就是需要查看当前进程,而 ps 命令就是最基本同时也是非常强大的进程查看命令.使用该命令可以确定有哪些进程正在运行和运行的状态

linux查看进程端口常用命令

查看进程及pid:    ps -ef | grep name    查看进程端口:        netstat -nap | grep pid 查看端口进程:    lsof -i:port    停止进程:    kill pid

windows查看进程占用并强制结束进程

打开命令提示符(CMD) 查看8080端口被哪个进程占用了,命令:netstat   -ano|findstr 8080 上面的8080端口的PID是30160,可以根据PID可以杀死这个进程,用下面的命令: tasklist|findstr 30160; taskkill /pid 30160 -t -f; 原文地址:https://www.cnblogs.com/sueyyyy/p/9707611.html

Windows查看进程taskList,终止进程tskill

TaskList:         列出当前所有运行进程.         使用方法:在命令提示符中输入tasklist 然后回车,会看到类似下面的列表: 映像名称                       PID 会话名              会话#       内存使用 ========================= ======== ================ =========== ============ System Idle Process             

Linux下查看进程和线程

在linux中查看线程数的三种方法 1.top -H 手册中说:-H : Threads toggle 加上这个选项启动top,top一行显示一个线程.否则,它一行显示一个进程. 2.ps xH 手册中说:H Show threads as if they were processes 这样可以查看所有存在的线程. 3.ps -mp <PID> 手册中说:m Show threads after processes 这样可以查看一个进程起的线程数. 查看进程 1. top 命令 top命令查看

linux下的进程管理(进程的基本了解及查看pstree,ps,pgrep命令)

Linux下的进程管理 1.什么是进程?程序是静态的文件进程是运行中的程序的一个副本进程存在生命周期(准备期,运行期,终止期)2.进程状态 状态 定义 R(TASK_RUNNING) . 可执行状态(RUNNING,READY)running:正在被处理 ready: 在排队, cpu处理进程个数有限 S(TASK_INTERRUPTIBLE) 可唤醒状态 :在cpu上使用的时间超时,此时被打入休眠状态,随着程序的调用会被唤醒 D(TASK_UNINTERRUPTIBLE) 不可唤醒状态 T(T

shell学习五十一天----top命令查看进程列表

top命令查看进程列表 top命令是linux下常用的性能分析工具,能实时显示系统中各个进程的资源占用状况.和win的资源管理器类似.top是一个动态显示过程,即可以通过用户按键来不断刷新当前状态,如果在前台执行该命令,它将独占前台,知道用户终止该程序为止.比较准确的说,top命令提供了实时的对系统处理器的状态监视.它将显示系统中CPU最"敏感"的任务列表.该命令可以按CPU使用,内存使用和执行时间对任务进行排序;而且该命令的很多特性都可以通过交互命令或者在个人定制文件中进行设定. t

linux进程时间定时任务命令

前面我们学习了系统信息,用户,网络,磁盘类命令,今天我们继续学习进程,安装,时间,定时任务命令. 进程类命令 在讲这类命令前我先给大家说下一些关于进程的基本概念.什么是进程?大家都知道程序吧!程序就是编程人员写的,存放在磁盘上没有运行.当他运行的时候就叫做进程.说到进程,我又想起一个线程的概念,所谓的线程就是进程下的仔.我们这样理解更好点儿.一个进程可以有很多线程.至于他们的区别后面我们会详细的讲. 我们的计算机运行一个程序的时候就会产生进程,那我们怎么知道计算机进程运行的情况呢?在Linux下