View Long Line Outputs Exceeding The Terminal Width
Created on August 21, 2025
/terminal
when your long lines break and it’s hard to read the output, pipe it into less -S.
This is hard to read:
❯ docker ps
sw_lib_scu_safety on main
❯ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS
PORTS NAMES
66a3150f03f7 registry:3 "/entrypoint.sh /etc…" 3 seconds ago Up 2 seconds 0.0.0.0:5003->5000/tcp,
[::]:5003->5000/tcp registry3
acad99551644 registry:3 "/entrypoint.sh /etc…" 7 seconds ago Up 6 seconds 0.0.0.0:5002->5000/tcp,
[::]:5002->5000/tcp registry2
8400cb4d7007 registry:3 "/entrypoint.sh /etc…" 5 minutes ago Up 5 minutes 0.0.0.0:5000->5000/tcp,
[::]:5000->5000/tcp registry
This is nice to read: docker ps | less -S
:
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS >
66a3150f03f7 registry:3 "/entrypoint.sh /etc…" 44 seconds ago Up 44 seconds 0.0.0.0:5003->5000/tc>
acad99551644 registry:3 "/entrypoint.sh /etc…" 48 seconds ago Up 47 seconds 0.0.0.0:5002->5000/tc>
8400cb4d7007 registry:3 "/entrypoint.sh /etc…" 6 minutes ago Up 6 minutes 0.0.0.0:5000->5000/tc>
(END)
You can navigate left and right with left-arrow and right-arrow.