Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there anything like /proc for windows [closed]

I'm Curious about 2 things,

  1. What is the closest equivalent to /proc that ships with windows
  2. Are there any products which add a proc like filesystem to windows?
like image 867
Roman A. Taycher Avatar asked Apr 27 '11 09:04

Roman A. Taycher


3 Answers

  1. Task manager
  2. Cygwin, giving Windows a Linux environment, certainly allows a Windows program to use /proc.
like image 188
CharlesB Avatar answered Oct 03 '22 07:10

CharlesB


As far as I know, there isn't anything equivalent to /proc in Windows. While there are facilities for getting similar information via Win32_Process (limited in comparison to /proc, e.g. you won't be able to get process memory maps this way) in WMI, windbg or Win32 APIs, Windows does not record this data onto files.

like image 36
Carlos Nunez Avatar answered Oct 03 '22 05:10

Carlos Nunez


It would help if you explained what your final goal is. What are you trying to do? For managing processes on windows you have the following options:

  1. Windows ships with Task Manager (taskmgr.exe)
  2. A better more versatile alternative is a tool called Process Explorer
  3. You also have the command line utility called tasklist.exe which can perform many tasks.
  4. Also there are other ways to interact with processes, including winapi, WMI and so on.
like image 28
Grim Avatar answered Oct 03 '22 05:10

Grim