14.9 C
New York
Wednesday, October 16, 2024

terminal – learn how to make the systemctl standing output auto wrap


I’m utilizing this command to indicate standing information:

[root@iZm5e2jhfbrshckqh6qdbuZ system]# systemctl standing kubelet
● kubelet.service - kubelet: The Kubernetes Node Agent
   Loaded: loaded (/usr/lib/systemd/system/kubelet.service; disabled; vendor preset: disabled)
  Drop-In: /usr/lib/systemd/system/kubelet.service.d
           └─10-kubeadm.conf
   Energetic: energetic (operating) since Fri 2024-10-11 20:24:39 CST; 1min 52s in the past
     Docs: https://kubernetes.io/docs/
 Fundamental PID: 3076745 (kubelet)
    Duties: 12 (restrict: 22976)
   Reminiscence: 95.1M
   CGroup: /system.slice/kubelet.service
           └─3076745 /usr/bin/kubelet --bootstrap-kubeconfig=/and so forth/kubernetes/bootstrap-kubelet.conf --kubeconfig=/and so forth/kubernetes/kubelet.conf --config=/var/lib/kubelet>

Oct 11 20:24:40 iZm5e2jhfbrshckqh6qdbuZ kubelet[3076745]: I1011 20:24:40.713781 3076745 reconciler_common.go:258] "operationExecutor.VerifyControllerAttachedVolume sta>
Oct 11 20:24:40 iZm5e2jhfbrshckqh6qdbuZ kubelet[3076745]: I1011 20:24:40.713816 3076745 reconciler_common.go:258] "operationExecutor.VerifyControllerAttachedVolume sta>

the output log solely accommodates a part of content material, learn how to output the entire line and auto wrap the road content material if it exceed the display? I’ve tried no pager like this:

[root@iZm5e2jhfbrshckqh6qdbuZ system]# systemctl --no-pager standing kubelet
● kubelet.service - kubelet: The Kubernetes Node Agent
   Loaded: loaded (/usr/lib/systemd/system/kubelet.service; disabled; vendor preset: disabled)
  Drop-In: /usr/lib/systemd/system/kubelet.service.d
           └─10-kubeadm.conf
   Energetic: energetic (operating) since Fri 2024-10-11 20:24:39 CST; 6min in the past
     Docs: https://kubernetes.io/docs/
 Fundamental PID: 3076745 (kubelet)
    Duties: 12 (restrict: 22976)
   Reminiscence: 135.1M
   CGroup: /system.slice/kubelet.service
           └─3076745 /usr/bin/kubelet --bootstrap-kubeconfig=/and so forth/kubernetes/bootstrap-kubelet.conf --kubeconfig=/and so forth/kubernetes/kubelet.conf --config=/var/lib/kubelet…

this simply substitute the > to …. and nonetheless couldn’t present the entire content material. Am I lacking one thing?

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles