Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit f8aaf49

Browse filesBrowse files
committed
Update time.md
1 parent f996894 commit f8aaf49
Copy full SHA for f8aaf49

1 file changed

+15-61Lines changed: 15 additions & 61 deletions

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎command/time.md‎

Copy file name to clipboardExpand all lines: command/time.md
+15-61Lines changed: 15 additions & 61 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -58,66 +58,20 @@ shell内建也有一个time命令,当运行time时候是调用的系统内建
5858

5959
`-f`选项后的参数:
6060

61-
<table border="1" cellpadding="0" cellspacing="0">
62-
<tbody>
63-
<tr>
64-
<th>参数</th>
65-
<th>描述</th>
66-
</tr>
67-
<tr>
68-
<td>%E</td>
69-
<td>real时间,显示格式为[小时:]分钟:秒</td>
70-
</tr>
71-
<tr>
72-
<td>%U</td>
73-
<td>user时间。</td>
74-
</tr>
75-
<tr>
76-
<td>%S</td>
77-
<td>sys时间。</td>
78-
</tr>
79-
<tr>
80-
<td>%C</td>
81-
<td>进行计时的命令名称和命令行参数。</td>
82-
</tr>
83-
<tr>
84-
<td>%D</td>
85-
<td>进程非共享数据区域,以KB为单位。</td>
86-
</tr>
87-
<tr>
88-
<td>%x</td>
89-
<td>命令退出状态。</td>
90-
</tr>
91-
<tr>
92-
<td>%k</td>
93-
<td>进程接收到的信号数量。</td>
94-
</tr>
95-
<tr>
96-
<td>%w</td>
97-
<td>进程被交换出主存的次数。</td>
98-
</tr>
99-
<tr>
100-
<td>%Z</td>
101-
<td>系统的页面大小,这是一个系统常量,不用系统中常量值也不同。</td>
102-
</tr>
103-
<tr>
104-
<td>%P</td>
105-
<td>进程所获取的CPU时间百分百,这个值等于user+system时间除以总共的运行时间。</td>
106-
</tr>
107-
<tr>
108-
<td>%K</td>
109-
<td>进程的平均总内存使用量(data+stack+text),单位是KB。</td>
110-
</tr>
111-
<tr>
112-
<td>%w</td>
113-
<td>进程主动进行上下文切换的次数,例如等待I/O操作完成。</td>
114-
</tr>
115-
<tr>
116-
<td>%c</td>
117-
<td>进程被迫进行上下文切换的次数(由于时间片到期)。</td>
118-
</tr>
119-
</tbody>
120-
</table>
121-
61+
参数 | 描述
62+
--- | ---
63+
`%E` | real时间,显示格式为[小时:]分钟:秒
64+
`%U` | user时间。
65+
`%S` | sys时间。
66+
`%C` | 进行计时的命令名称和命令行参数。
67+
`%D` | 进程非共享数据区域,以KB为单位。
68+
`%x` | 命令退出状态。
69+
`%k` | 进程接收到的信号数量。
70+
`%w` | 进程被交换出主存的次数。
71+
`%Z` | 系统的页面大小,这是一个系统常量,不用系统中常量值也不同。
72+
`%P` | 进程所获取的CPU时间百分百,这个值等于 `user+system` 时间除以总共的运行时间。
73+
`%K` | 进程的平均总内存使用量(data+stack+text),单位是 `KB`
74+
`%w` | 进程主动进行上下文切换的次数,例如等待I/O操作完成。
75+
`%c` | 进程被迫进行上下文切换的次数(由于时间片到期)。
12276

12377
<!-- Linux命令行搜索引擎:https://jaywcjlove.github.io/linux-command/ -->

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.