mirror of
https://github.com/fofolee/uTools-Manuals.git
synced 2025-10-11 00:43:20 +08:00
语法高亮,滚动条美化,设置页面调整
This commit is contained in:
@@ -3,9 +3,9 @@
|
||||
<h2 id="补充说明">补充说明</h2>
|
||||
<p><strong>logger命令</strong> 是用于往系统中写入日志,他提供一个shell命令接口到syslog系统模块</p>
|
||||
<h3 id="语法">语法</h3>
|
||||
<pre><code>logger [options] [message]</code></pre>
|
||||
<pre><code class="language-bash">logger [options] [message]</code></pre>
|
||||
<h3 id="选项">选项</h3>
|
||||
<pre><code> -T, --tcp 使用流连接(TCP)
|
||||
<pre><code class="language-bash"> -T, --tcp 使用流连接(TCP)
|
||||
-d, --udp 使用数据报(UDP)
|
||||
-i, --id 逐行记录每一次logger的进程ID
|
||||
-f, --file <file> 记录特定的文件
|
||||
@@ -20,5 +20,5 @@
|
||||
-u, --socket <socket> 写入指定的socket,而不是到内置系统日志例程。
|
||||
-V, --version 输出版本信息并退出</code></pre>
|
||||
<h3 id="例子">例子</h3>
|
||||
<pre><code>logger -p syslog.info "backup.sh is starting"</code></pre>
|
||||
<pre><code class="language-bash">logger -p syslog.info "backup.sh is starting"</code></pre>
|
||||
<!-- Linux命令行搜索引擎:https://jaywcjlove.github.io/linux-command/ -->
|
||||
|
Reference in New Issue
Block a user