如何使用带有 -l, --full 选项的 systemctl status httpd。我看不到输出中长行的全部内容

如何使用带有 -l, --full 选项的 systemctl status httpd。我看不到输出中长行的全部内容

httpd我想检查系统的状态。
我想使用-l, --full选项来查看长行的全部内容。

我读过这里,有这样的选项-l, --full

Do not ellipsize unit names, process tree entries, journal output, or truncate unit
descriptions in the output of status, list-units, list-jobs, and list-timers.  
Also, show installation targets in the output of is-enabled.

但无论我做什么,无论我在哪里放置-l, --full选项,我的输出行都会被截断,如下所示:

Thu May 11 [michal@Ora1 ~]$ sudo systemctl status --full httpd
● httpd.service - The Apache HTTP Server
   Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
  Drop-In: /usr/lib/systemd/system/httpd.service.d
           └─php-fpm.conf
   Active: active (running) since Thu 2023-05-11 07:55:18 CEST; 1min 48s ago
     Docs: man:httpd.service(8)
 Main PID: 2441 (httpd)
   Status: "Running, listening on: port 443, 10.32.81.217 port 80, ..."
    Tasks: 213 (limit: 10493)
   Memory: 27.0M
   CGroup: /system.slice/httpd.service
           ├─2441 /usr/sbin/httpd -DFOREGROUND
           ├─2443 /usr/sbin/httpd -DFOREGROUND
           ├─2444 /usr/sbin/httpd -DFOREGROUND
           ├─2445 /usr/sbin/httpd -DFOREGROUND
           └─2446 /usr/sbin/httpd -DFOREGROUND

May 11 07:55:18 Ora1.localdomain systemd[1]: Starting The Apache HTTP Server...
May 11 07:55:18 Ora1.localdomain systemd[1]: Started The Apache HTTP Server.
May 11 07:55:18 Ora1.localdomain httpd[2441]: Server configured, listening on: port 443, 10.32.81.217 port 80, ...
Thu May 11 [michal@Ora1 ~]$ sudo systemctl status -l httpd
● httpd.service - The Apache HTTP Server
   Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
  Drop-In: /usr/lib/systemd/system/httpd.service.d
           └─php-fpm.conf
   Active: active (running) since Thu 2023-05-11 07:55:18 CEST; 19min ago
     Docs: man:httpd.service(8)
 Main PID: 2441 (httpd)
   Status: "Running, listening on: port 443, 10.32.81.217 port 80, ..."
    Tasks: 213 (limit: 10493)
   Memory: 27.0M
   CGroup: /system.slice/httpd.service
           ├─2441 /usr/sbin/httpd -DFOREGROUND
           ├─2443 /usr/sbin/httpd -DFOREGROUND
           ├─2444 /usr/sbin/httpd -DFOREGROUND
           ├─2445 /usr/sbin/httpd -DFOREGROUND
           └─2446 /usr/sbin/httpd -DFOREGROUND

May 11 07:55:18 Ora1.localdomain systemd[1]: Starting The Apache HTTP Server...
May 11 07:55:18 Ora1.localdomain systemd[1]: Started The Apache HTTP Server.
May 11 07:55:18 Ora1.localdomain httpd[2441]: Server configured, listening on: port 443, 10.32.81.217 port 80, ...
Thu May 11 [michal@Ora1 ~]$ sudo systemctl -l status httpd
● httpd.service - The Apache HTTP Server
   Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
  Drop-In: /usr/lib/systemd/system/httpd.service.d
           └─php-fpm.conf
   Active: active (running) since Thu 2023-05-11 07:55:18 CEST; 19min ago
     Docs: man:httpd.service(8)
 Main PID: 2441 (httpd)
   Status: "Running, listening on: port 443, 10.32.81.217 port 80, ..."
    Tasks: 213 (limit: 10493)
   Memory: 27.0M
   CGroup: /system.slice/httpd.service
           ├─2441 /usr/sbin/httpd -DFOREGROUND
           ├─2443 /usr/sbin/httpd -DFOREGROUND
           ├─2444 /usr/sbin/httpd -DFOREGROUND
           ├─2445 /usr/sbin/httpd -DFOREGROUND
           └─2446 /usr/sbin/httpd -DFOREGROUND

May 11 07:55:18 Ora1.localdomain systemd[1]: Starting The Apache HTTP Server...
May 11 07:55:18 Ora1.localdomain systemd[1]: Started The Apache HTTP Server.
May 11 07:55:18 Ora1.localdomain httpd[2441]: Server configured, listening on: port 443, 10.32.81.217 port 80, ...
Thu May 11 [michal@Ora1 ~]$ sudo systemctl status httpd
● httpd.service - The Apache HTTP Server
   Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
  Drop-In: /usr/lib/systemd/system/httpd.service.d
           └─php-fpm.conf
   Active: active (running) since Thu 2023-05-11 07:55:18 CEST; 20min ago
     Docs: man:httpd.service(8)
 Main PID: 2441 (httpd)
   Status: "Running, listening on: port 443, 10.32.81.217 port 80, ..."
    Tasks: 213 (limit: 10493)
   Memory: 27.0M
   CGroup: /system.slice/httpd.service
           ├─2441 /usr/sbin/httpd -DFOREGROUND
           ├─2443 /usr/sbin/httpd -DFOREGROUND
           ├─2444 /usr/sbin/httpd -DFOREGROUND
           ├─2445 /usr/sbin/httpd -DFOREGROUND
           └─2446 /usr/sbin/httpd -DFOREGROUND

May 11 07:55:18 Ora1.localdomain systemd[1]: Starting The Apache HTTP Server...
May 11 07:55:18 Ora1.localdomain systemd[1]: Started The Apache HTTP Server.
May 11 07:55:18 Ora1.localdomain httpd[2441]: Server configured, listening on: port 443, 10.32.81.217 port 80, ...

-l, --full正如您上面所看到的,无论我是否使用选项,都没有什么实际区别。

如何强制 systemctl 在输出中显示长行的全部内容?

相关内容