| Server IP : 85.112.90.236 / Your IP : 192.168.1.26 Web Server : Apache System : Linux 85-112-90-236.cprapid.com 6.12.0-211.7.3.el10_2.x86_64 #1 SMP PREEMPT_DYNAMIC Tue May 19 12:46:58 EDT 2026 x86_64 User : ftechme ( 1002) PHP Version : 8.2.32 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/share/help/zh_CN/gnome-system-monitor/ |
Upload File : |
<?xml version="1.0" encoding="utf-8"?>
<page xmlns="http://projectmallard.org/1.0/" type="topic" style="task" id="commandline" xml:lang="zh_CN">
<info>
<revision version="0.2" pkgversion="3.11" date="2014-01-26" status="review"/>
<link type="guide" xref="index#other" group="other"/>
<include xmlns="http://www.w3.org/2001/XInclude" href="legal.xml"/>
<credit type="author copyright">
<name>Phil Bull</name>
<email>philbull@gmail.com</email>
<years>2011</years>
</credit>
<credit type="author copyright">
<name>Michael Hill</name>
<email>mdhillca@gmail.com</email>
<years>2014</years>
</credit>
<desc>系统监视器中的信息也可以使用命令行工具获得。</desc>
<mal:credit xmlns:mal="http://projectmallard.org/1.0/" type="translator copyright">
<mal:name>Victor_Trista</mal:name>
<mal:email>ljlzjzm@hotmail.com</mal:email>
<mal:years>2023</mal:years>
</mal:credit>
</info>
<title>从命令行获取相同的信息</title>
<p>系统监视器显示的大部分信息也可以通过这些命令行工具获得。</p>
<table rules="rows" frame="top bottom">
<tr>
<td><p><cmd>top</cmd></p></td>
<td><p>提供一个持续更新的运行中进程列表,并且允许您操作它。</p></td>
</tr>
<tr>
<td><p><cmd>lsof</cmd></p></td>
<td><p>提供一个进程打开的文件的列表。</p></td>
</tr>
<tr>
<td><p><cmd>free -m</cmd></p></td>
<td><p>显示可用内存。</p></td>
</tr>
<tr>
<td><p><cmd>vmstat</cmd></p></td>
<td><p>提供有关当前虚拟内存使用情况的信息。</p></td>
</tr>
<tr>
<td><p><cmd>df -h</cmd></p></td>
<td><p>显示已挂载文件系统上的可用磁盘空间。</p></td>
</tr>
<tr>
<td><p><cmd>pmap</cmd></p></td>
<td><p>显示进程的内存映射。</p></td>
</tr>
</table>
</page>