equal
deleted
inserted
replaced
84 |
84 |
85 $ fstat -p <pid> |
85 $ fstat -p <pid> |
86 |
86 |
87 ** Windows. |
87 ** Windows. |
88 |
88 |
|
89 *** Interactive. |
|
90 |
|
91 procexp.exe from Sysinternals. |
|
92 |
|
93 *** Static. |
|
94 |
|
95 handle.exe from Sysinternals: |
|
96 |
|
97 cmd> handle -p 1265 |
|
98 C: File (RW-) C:\Program Files\Common Files\GTK\2.0\bin |
|
99 288: Section \BaseNamedObjects\mmGlobalPnpInfo |
|
100 |
89 * Opened file by user. |
101 * Opened file by user. |
90 |
102 |
91 ** FreeBSD. |
103 ** FreeBSD. |
92 |
104 |
93 $ fstat -u <user> |
105 $ fstat -u <user> |
102 protocol - tcp, udp |
114 protocol - tcp, udp |
103 |
115 |
104 ** FreeBSD. |
116 ** FreeBSD. |
105 |
117 |
106 ** Windows. |
118 ** Windows. |
|
119 |
|
120 cmd> netstat -o |
|
121 Type Local addr Remote addr State PID |
|
122 TCP user:1154 localhost:1153 ESTABLISHED 1512 |
|
123 TCP user:5152 localhost:1052 CLOSE_WAIT 1524 |
|
124 TCP user:1036 services.int:5222 ESTABLISHED 1188 |
|
125 |
|
126 * Locked file by process. |
|
127 |
|
128 ** Linux. |
|
129 |
|
130 $ lsof <file> |
|
131 |
|
132 ** FreeBSD. |
|
133 |
|
134 TODO |
|
135 |
|
136 ** Solaris. |
|
137 |
|
138 TODO |
|
139 |
|
140 ** Windows. |
|
141 |
|
142 *** Interactive. |
|
143 |
|
144 procexp.exe from Sysinternals. |
|
145 |
|
146 *** Static. |
|
147 |
|
148 handle.exe from Sysinternals: |
|
149 |
|
150 cmd> handle d:\home |
|
151 ispell.exe pid: 244 784: D:\home\drivers\token_api\src |
|
152 Far.exe pid: 432 10C: D:\home\drivers\token_api |
|
153 |