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に出力に長い行の内容全体を表示させるにはどうすればよいですか?