Stop ps from truncating your long process commands
Process & Resource Monitoring (Top/Htop/Ps/Systemd)
Stop ps from truncating your long process commands
🧩 The Challenge
You know that feeling when you grep for a java process or a complex script, only for ps to slice the output right where the arguments get interesting? It makes debugging stuck jobs a nightmare when you can’t see the full path or flags.
💡 The Fix
Just tell ps to stop being shy by setting the column width to the max. It forces the output to expand instead of cutting off mid-stream.
ps auxww
⚙️ Why It Works
Adding multiple w flags signals to the command that you want the widest possible output for the command column, ignoring the standard terminal wrap. Without them, it defaults to the width of your screen, which is almost never enough for those giant container runtime strings.
🚀 Pro-Tip: Pipe it into cat -A if you suspect there are hidden control characters messing up your terminal display.
Linux Tips & Tricks | © ngelinux.com | 8/5/2026
