# HG changeset patch # User Oleksandr Gavenko # Date 1252952468 -10800 # Node ID e9f649ad236b80ad524684504802eba0ea42602d # Parent 89a7852aa71bef2fedfba5e4079c2380dfd35507# Parent a433d60096411007e591c8bd964a4975babf3e25 merged diff -r 89a7852aa71b -r e9f649ad236b devel-windows.rst --- a/devel-windows.rst Sun Sep 13 14:45:48 2009 +0300 +++ b/devel-windows.rst Mon Sep 14 21:21:08 2009 +0300 @@ -15,49 +15,6 @@ http://www.dependencywalker.com/ -* Kill process. - -** tskill.exe. - - cmd> tskill {|} - -** taskkill.exe. - - cmd> taskkill /IM notepad.exe - cmd> taskkill /PID 827 - -* lsof for Windows. - -** handle.exe from Sysinternals. - - cmd> handle d:\home -ispell.exe pid: 244 784: D:\home\drivers\token_api\src -Far.exe pid: 432 10C: D:\home\drivers\token_api - - cmd> handle -p 1265 - C: File (RW-) C:\Program Files\Common Files\GTK\2.0\bin -288: Section \BaseNamedObjects\mmGlobalPnpInfo - -** TaskList.exe. - - cmd> TaskList -Process Name PID Session Name #Session Memory -========================= ====== ================ ======== ============ -System Idle Process 0 Console 0 28 KB -System 4 Console 0 236 KB -smss.exe 592 Console 0 432 KB -csrss.exe 656 Console 0 4 404 KB -winlogon.exe 680 Console 0 2 792 KB -services.exe 724 Console 0 3 260 KB - -** netstat.exe. - - cmd> netstat -o -Type Local addr Remote addr State PID -TCP user:1154 localhost:1153 ESTABLISHED 1512 -TCP user:5152 localhost:1052 CLOSE_WAIT 1524 -TCP user:1036 services.int:5222 ESTABLISHED 1188 - * Sysinternals. - +TODO diff -r 89a7852aa71b -r e9f649ad236b laser-disk.rst --- a/laser-disk.rst Sun Sep 13 14:45:48 2009 +0300 +++ b/laser-disk.rst Mon Sep 14 21:21:08 2009 +0300 @@ -34,7 +34,7 @@ |DVD+R DL | 4,173,824 | 8,547,991,552 | 8.5 | 7.961 | +----------+-----------+---------------+------+--------+ -* +* Vendor. ** Verbatim. diff -r 89a7852aa71b -r e9f649ad236b process-managment.rst --- a/process-managment.rst Sun Sep 13 14:45:48 2009 +0300 +++ b/process-managment.rst Mon Sep 14 21:21:08 2009 +0300 @@ -31,6 +31,41 @@ TODO +** Windows. + +*** Interactive. + + cmd> taskmgr + +*** Static. + + cmd> TaskList +Process Name PID Session Name #Session Memory +========================= ====== ================ ======== ============ +System Idle Process 0 Console 0 28 KB +System 4 Console 0 236 KB +smss.exe 592 Console 0 432 KB +csrss.exe 656 Console 0 4 404 KB +winlogon.exe 680 Console 0 2 792 KB +services.exe 724 Console 0 3 260 KB + +* Killing process. + +** Linux. + +TODO + + $ kill -s + +** Windows. + +TODO which version from which Windows version comes? + + cmd> tskill {|} + + cmd> taskkill /IM notepad.exe + cmd> taskkill /PID 827 + * Process info. Show user, pid, ppid, pgid, sid, jobc, state, time, command, etc. @@ -47,10 +82,6 @@ $ ps -l -* Killing process. - -TODO - * Run as another user. ** Linux. @@ -62,3 +93,6 @@ $ sudo -u -i +** Windows. + + $ runas /u: TODO XXX diff -r 89a7852aa71b -r e9f649ad236b stat.rst --- a/stat.rst Sun Sep 13 14:45:48 2009 +0300 +++ b/stat.rst Mon Sep 14 21:21:08 2009 +0300 @@ -104,6 +104,18 @@ ** Windows. +*** Interactive. + +procexp.exe from Sysinternals. + +*** Static. + +handle.exe from Sysinternals: + + cmd> handle -p 1265 + C: File (RW-) C:\Program Files\Common Files\GTK\2.0\bin +288: Section \BaseNamedObjects\mmGlobalPnpInfo + * Opened file by user. ** FreeBSD. @@ -122,3 +134,38 @@ ** FreeBSD. ** Windows. + + cmd> netstat -o +Type Local addr Remote addr State PID +TCP user:1154 localhost:1153 ESTABLISHED 1512 +TCP user:5152 localhost:1052 CLOSE_WAIT 1524 +TCP user:1036 services.int:5222 ESTABLISHED 1188 + +* Locked file by process. + +** Linux. + + $ lsof + +** FreeBSD. + +TODO + +** Solaris. + +TODO + +** Windows. + +*** Interactive. + +procexp.exe from Sysinternals. + +*** Static. + +handle.exe from Sysinternals: + + cmd> handle d:\home +ispell.exe pid: 244 784: D:\home\drivers\token_api\src +Far.exe pid: 432 10C: D:\home\drivers\token_api +