author | Oleksandr Gavenko <gavenkoa@gmail.com> |
Sun, 04 Sep 2011 11:25:25 +0300 | |
changeset 977 | 8af50fca6c56 |
parent 976 | dea985d1eed6 |
child 983 | 018e63c076ca |
permissions | -rw-r--r-- |
975
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
1 |
.. -*- coding: utf-8 -*- |
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
2 |
|
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
3 |
================ |
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
4 |
OS statistics. |
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
5 |
================ |
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
6 |
.. contents:: |
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
7 |
|
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
8 |
CPU consumption. |
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
9 |
================ |
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
10 |
|
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
11 |
Linux interactive. |
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
12 |
------------------ |
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
13 |
:: |
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
14 |
|
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
15 |
$ top |
976 | 16 |
|
17 |
Try press 's' (strace), 'l' (lsof), 'F5' (tree view) in:: |
|
18 |
||
975
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
19 |
$ htop |
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
20 |
|
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
21 |
http://htop.sourceforge.net/ |
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
22 |
home page |
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
23 |
|
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
24 |
Linux static. |
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
25 |
------------- |
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
26 |
:: |
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
27 |
|
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
28 |
$ ps -eo %cpu,pid,cmd --sort=%cpu |
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
29 |
|
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
30 |
FreeBSD interactive. |
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
31 |
-------------------- |
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
32 |
:: |
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
33 |
|
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
34 |
$ top |
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
35 |
|
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
36 |
Windows. |
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
37 |
-------- |
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
38 |
:: |
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
39 |
|
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
40 |
cmd> taskmgr |
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
41 |
|
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
42 |
Solaris. |
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
43 |
-------- |
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
44 |
|
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
45 |
Interactive:: |
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
46 |
|
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
47 |
$ perfmeter |
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
48 |
|
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
49 |
Static:: |
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
50 |
|
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
51 |
$ prstat |
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
52 |
|
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
53 |
$ mpstat <num> <seconds> |
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
54 |
|
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
55 |
See |
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
56 |
|
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
57 |
http://developers.sun.com/solaris/articles/prstat.html |
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
58 |
Topping top in Solaris 8 with prstat. |
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
59 |
|
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
60 |
Memory consumption. |
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
61 |
=================== |
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
62 |
|
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
63 |
Linux interactive. |
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
64 |
------------------ |
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
65 |
:: |
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
66 |
|
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
67 |
$ top |
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
68 |
|
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
69 |
Linux static. |
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
70 |
------------- |
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
71 |
|
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
72 |
Vitual and resident memory size:: |
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
73 |
|
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
74 |
$ ps -eo vsz,rsz,pid,cmd --sort=vsz --width 3000 |
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
75 |
|
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
76 |
Swap size and usage:: |
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
77 |
|
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
78 |
$ free |
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
79 |
|
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
80 |
FreeBSD interactive. |
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
81 |
-------------------- |
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
82 |
:: |
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
83 |
|
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
84 |
$ top |
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
85 |
|
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
86 |
FreeBSD static. |
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
87 |
--------------- |
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
88 |
|
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
89 |
Swap size:: |
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
90 |
|
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
91 |
$ swapinfo |
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
92 |
$ pstat -s |
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
93 |
|
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
94 |
Swap usage:: |
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
95 |
|
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
96 |
$ vmstat |
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
97 |
|
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
98 |
Solaris. |
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
99 |
-------- |
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
100 |
:: |
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
101 |
|
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
102 |
$ sar -g |
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
103 |
|
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
104 |
$ vmstat |
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
105 |
|
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
106 |
$ prstat -s size |
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
107 |
|
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
108 |
$ prstat -a |
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
109 |
|
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
110 |
Windows. |
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
111 |
-------- |
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
112 |
:: |
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
113 |
|
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
114 |
cmd> taskmgr |
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
115 |
|
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
116 |
and add colums TODO. |
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
117 |
|
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
118 |
Opened file by process. |
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
119 |
======================= |
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
120 |
|
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
121 |
Linux. |
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
122 |
------ |
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
123 |
:: |
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
124 |
|
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
125 |
$ lsof -p <pid> |
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
126 |
|
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
127 |
FreeBSD. |
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
128 |
-------- |
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
129 |
:: |
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
130 |
|
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
131 |
$ fstat -p <pid> |
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
132 |
|
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
133 |
Windows interactive. |
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
134 |
-------------------- |
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
135 |
|
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
136 |
procexp.exe from Sysinternals. |
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
137 |
|
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
138 |
Windows static. |
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
139 |
--------------- |
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
140 |
|
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
141 |
handle.exe from Sysinternals:: |
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
142 |
|
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
143 |
cmd> handle -p 1265 |
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
144 |
C: File (RW-) C:\Program Files\Common Files\GTK\2.0\bin |
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
145 |
288: Section \BaseNamedObjects\mmGlobalPnpInfo |
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
146 |
|
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
147 |
Opened file by user. |
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
148 |
==================== |
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
149 |
|
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
150 |
FreeBSD. |
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
151 |
-------- |
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
152 |
:: |
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
153 |
|
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
154 |
$ fstat -u <user> |
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
155 |
|
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
156 |
Opened network connection by process. |
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
157 |
===================================== |
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
158 |
|
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
159 |
Linux. |
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
160 |
------ |
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
161 |
:: |
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
162 |
|
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
163 |
$ lsof -i[46][protocol][@{hostname|hostaddr}][:{service|port}] |
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
164 |
|
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
165 |
46 - IPV4 or IPV6 |
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
166 |
protocol - tcp, udp |
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
167 |
|
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
168 |
FreeBSD. |
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
169 |
-------- |
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
170 |
|
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
171 |
TODO |
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
172 |
|
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
173 |
Windows. |
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
174 |
-------- |
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
175 |
:: |
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
176 |
|
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
177 |
cmd> netstat -o |
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
178 |
Type Local addr Remote addr State PID |
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
179 |
TCP user:1154 localhost:1153 ESTABLISHED 1512 |
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
180 |
TCP user:5152 localhost:1052 CLOSE_WAIT 1524 |
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
181 |
TCP user:1036 services.int:5222 ESTABLISHED 1188 |
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
182 |
|
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
183 |
Locked file by process. |
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
184 |
======================= |
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
185 |
|
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
186 |
Linux. |
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
187 |
------ |
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
188 |
:: |
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
189 |
|
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
190 |
$ lsof <file> |
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
191 |
|
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
192 |
FreeBSD. |
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
193 |
-------- |
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
194 |
|
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
195 |
TODO |
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
196 |
|
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
197 |
Solaris. |
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
198 |
-------- |
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
199 |
|
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
200 |
TODO |
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
201 |
|
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
202 |
Windows interactive. |
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
203 |
-------------------- |
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
204 |
|
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
205 |
procexp.exe from Sysinternals. |
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
206 |
|
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
207 |
Windows static. |
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
208 |
--------------- |
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
209 |
|
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
210 |
handle.exe from Sysinternals:: |
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
211 |
|
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
212 |
cmd> handle d:\home |
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
213 |
ispell.exe pid: 244 784: D:\home\drivers\token_api\src |
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
214 |
Far.exe pid: 432 10C: D:\home\drivers\token_api |
73434438aa40
http://htop.sourceforge.net/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
215 |