Debian Codegraph @

help/C/commandline.page

raw
1 <page xmlns="http://projectmallard.org/1.0/"
2 type="topic" style="task"
3 id="commandline">
4 <info>
5 <revision version="0.2" pkgversion="3.11" date="2014-01-26" status="review"/>
6 <link type="guide" xref="index#other" group="other" />
7
8 <include href="legal.xml" xmlns="http://www.w3.org/2001/XInclude"/>
9
10 <credit type="author copyright">
11 <name>Phil Bull</name>
12 <email>[email protected]</email>
13 <years>2011</years>
14 </credit>
15 <credit type="author copyright">
16 <name>Michael Hill</name>
17 <email>[email protected]</email>
18 <years>2014</years>
19 </credit>
20
21 <desc>Information in System Monitor can also be found using command line
22 tools.</desc>
23 </info>
24
25 <title>Get the same information from the command line</title>
26
27 <comment>
28 <cite date="2011-06-18" href="mailto:[email protected]">Phil Bull</cite>
29 <p>Briefly list a few useful command line tools which can provide some of
30 the same information as System Monitor. Don't go into too much detail.</p>
31 </comment>
32
33 <p>Most of the information displayed by System Monitor can also be obtained
34 using these command line tools.</p>
35
36 <table rules="rows" frame="top bottom">
37
38 <tr>
39 <td><p><cmd>top</cmd></p></td>
40 <td><p>provides a continually updated list of running processes, and
41 allows you to manipulate them.</p></td>
42 </tr>
43
44 <tr>
45 <td><p><cmd>lsof</cmd></p></td>
46 <td><p>provides a list of open files and the processes that opened
47 them.</p></td>
48 </tr>
49
50 <tr>
51 <td><p><cmd>free -m</cmd></p></td>
52 <td><p>shows you how much memory is available.</p></td>
53 </tr>
54
55 <tr>
56 <td><p><cmd>vmstat</cmd></p></td>
57 <td><p>provides information about current virtual memory use.</p></td>
58 </tr>
59
60 <tr>
61 <td><p><cmd>df -h</cmd></p></td>
62 <td><p>displays available disk space on mounted filesystems.</p></td>
63 </tr>
64
65 <tr>
66 <td><p><cmd>pmap</cmd></p></td>
67 <td><p>displays the memory map of a process.</p></td>
68 </tr>
69
70 </table>
71
72 </page>