NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.

Forum Discussion

aks-2's avatar
aks-2
Apprentice
Aug 23, 2021

PuTTY terminal width: ps output

In a PuTTY terminal window, I am struggling to get ps to display the full command line for long commands, despite trying to override the output width. Ideally, I'd like to get ps to wrap. I tried:

ps axf --cols 300

The lines just get truncated at terminal width.

 

If I redirect to a file, no chopping of lines.

 

However, more <file> shows full lines wrapped, but, cat chops the ends off.

 

Any suggestions?

3 Replies

Replies have been turned off for this discussion
  • Note, I also tried to get ps to ignore termnal width by adding w w :

    ps axfww

    Lines still chopped at terminal width.

    • StephenB's avatar
      StephenB
      Guru - Experienced User

      aks-2 wrote:

      Note, I also tried to get ps to ignore termnal width by adding w w :

      ps axfww

      Lines still chopped at terminal width.


      Odd, as I'm not seeing that.  ps efx truncates, but ps efxww wraps.

       

      Have you tried piping it through something else (for instance grep).

       

      • aks-2's avatar
        aks-2
        Apprentice

        I literally have no idea what's happened, I just retried all the combinations from yesterday, all wrap fine :smileysurprised:!

        I did not reboot the ReadyNAS, but I have rebooted the PC (Win10). I was very confused as this obviously worked in the past, and I just started to wonder whether it was 'broken' by the recent patch/update.

        I am running 6.10.5 Hotfix 1.

NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology! 

Join Us!

ProSupport for Business

Comprehensive support plans for maximum network uptime and business peace of mind.

 

Learn More