In windows Tasklist is the command but how list the Running process and their child process in windows 7
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.
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).
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).
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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With