Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

In windows How get all process and their child process information in command prompt in windows 7

Tags:

windows

In windows Tasklist is the command but how list the Running process and their child process in windows 7

like image 765
user1699309 Avatar asked Sep 27 '12 06:09

user1699309


People also ask

How can I see all processes in CMD?

Use Of Tasklist Command First of all open the Start Screen and type Cmd utility in search box then click on the search button. Click on the cmd utility icon; it opens a command-line window. Type Tasklist in it and press the enter key. This command shows all the running processes in your system.

How do I see what processes are running on Windows 7?

Press Ctrl+Alt+Del. Click Start Task Manager. Click the Processes tab. Look at the Description column and select a process that you know (for example, select Windows Task Manager).

How do I see all processes running in Windows?

Hold Ctrl+Shift+Esc or right-click on the Windows bar, and choose Start Task Manager. In Windows Task Manager, click on More details. The Processes tab displays all running processes and their current resources usage. To see all processes executed by an individual user, go to the Users tab (1), and expand User (2).

How do you check the process of a child process?

Using the /proc File System It contains information about the kernel, system, and processes. We can find the PIDs of the child processes of a parent process in the children files located in the /proc/[pid]/task/[tid] directories.


1 Answers

You can get a list of processes with the PID and parent PID using:

wmic process get Caption,ParentProcessId,ProcessId

Given a parent PID you can list the immediate children with something like:

wmic process where (ParentProcessId=2480) get Caption,ProcessId
like image 170
arx Avatar answered Oct 11 '22 23:10

arx